Problem installingapps_ex
User YSH2020
Submission Time 2025-12-08 11:07:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

installingapps_ex.cpp: In function ‘int main()’:
installingapps_ex.cpp:12:95: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘std::pair<int, int>’)
12 | vector<pair<int,pair<int,int>>> cost(n); for (int i = 0; i < n; i++) cin >> cost[i].first >> cost[i].second;
| ~~~~~~~~~~~~~~~~~~~~ ^~
| |
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64