Problem atomsplit
User chairta
Submission Time 2026-06-24 15:34:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

atomsplit.cpp: In function ‘int main()’:
atomsplit.cpp:2:11: error: ‘cin’ was not declared in this scope
2 | int n,t; cin >> n >> t;
| ^~~
atomsplit.cpp:3:2: error: ‘priority_queue’ was not declared in this scope
3 | priority_queue<int> s;
| ^~~~~~~~~~~~~~
atomsplit.cpp:3:17: error: expected primary-expression before ‘int’
3 | priority_queue<int> s;
| ^~~
atomsplit.cpp:8:3: error: ‘s’ was not declared in this scope
8 | s.push(a);
| ^
atomsplit.cpp:10:19: error: ‘s’ was not declared in this scope
10 | while (t != 0 && s.size() != 0) {
| ^
atomsplit.cpp:20:2: error: ‘cout’ was not declared in this scope
20 | cout << e;
| ^~~~