Problem leftout
User YYC
Submission Time 2025-06-18 09:50:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leftout.cpp: In function ‘int main()’:
leftout.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> N >> Q;
| ^~~
leftout.cpp:4:5: error: ‘vector’ was not declared in this scope
4 | vector<bool> called(N + 1, false);
| ^~~~~~
leftout.cpp:4:12: error: expected primary-expression before ‘bool’
4 | vector<bool> called(N + 1, false);
| ^~~~
leftout.cpp:8:9: error: ‘called’ was not declared in this scope
8 | called[id] = true;
| ^~~~~~
leftout.cpp:11:14: error: ‘called’ was not declared in this scope
11 | if (!called[i]) cout << i << " ";
| ^~~~~~
leftout.cpp:11:25: error: ‘cout’ was not declared in this scope
11 | if (!called[i]) cout << i << " ";
| ^~~~
leftout.cpp:13:5: error: ‘cout’ was not declared in this scope