Problem general
User dooweidde
Submission Time 2025-08-06 15:44:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

general.cpp: In function ‘int find(long long int, std::vector<std::pair<long long int, long long int> >)’:
general.cpp:22:18: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’ in return
22 | return {x,vec};
| ^
general.cpp: In function ‘int main()’:
general.cpp:38:23: error: request for member ‘second’ in ‘faction_a’, which is of non-class type ‘int’
38 | f = faction_a.second;
| ^~~~~~
general.cpp:39:31: error: request for member ‘first’ in ‘faction_a’, which is of non-class type ‘int’
39 | faction_a = faction_a.first;
| ^~~~~
general.cpp:41:23: error: request for member ‘second’ in ‘faction_b’, which is of non-class type ‘int’
41 | f = faction_b.second;
| ^~~~~~
general.cpp:42:31: error: request for member ‘first’ in ‘faction_b’, which is of non-class type