Problem minerals
User Henries
Submission Time 2025-03-13 16:41:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minerals.cpp: In function ‘void Solve(int)’:
minerals.cpp:3:3: error: ‘vector’ was not declared in this scope
3 | vector<long long> used;
| ^~~~~~
minerals.cpp:3:10: error: expected primary-expression before ‘long’
3 | vector<long long> used;
| ^~~~
minerals.cpp:4:10: error: ‘pair’ was not declared in this scope
4 | vector<pair<long long, long long>> minerals(N);
| ^~~~
minerals.cpp:4:15: error: expected primary-expression before ‘long’
4 | vector<pair<long long, long long>> minerals(N);
| ^~~~
minerals.cpp:11:21: error: ‘Query’ was not declared in this scope
11 | long long num = Query(slice); // Toggle slice: if not present, it gets inserted.
| ^~~~~
minerals.cpp:14:7: error: ‘used’ was not declared in this scope
14 | used.push_back(slice);
| ^~~~
minerals.cpp