Problem monsters
User Schoolpurposes
Submission Time 2025-10-11 11:00:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

monsters.cpp: In function ‘int32_t main()’:
monsters.cpp:12:15: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘first’
12 | cin >> list.first >> list.second;
| ^~~~~
monsters.cpp:12:29: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘second’
12 | cin >> list.first >> list.second;
| ^~~~~~
monsters.cpp: At global scope:
monsters.cpp:27:2: error: ‘cout’ does not name a type
27 | cout << level;
| ^~~~
monsters.cpp:28:2: error: expected unqualified-id before ‘return’
28 | return 0;
| ^~~~~~
monsters.cpp:29:1: error: expected declaration before ‘}’ token
29 | }
| ^