Problem catlunch
User Ash
Submission Time 2024-11-15 17:23:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘void solve()’:
catlunch.cpp:4:5: error: ‘cin’ was not declared in this scope
4 | cin >> n >> k;
| ^~~
catlunch.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<int> a(n);
| ^~~~~~
catlunch.cpp:5:12: error: expected primary-expression before ‘int’
5 | vector<int> a(n);
| ^~~
catlunch.cpp:7:16: error: ‘a’ was not declared in this scope
7 | cin >> a[i];
| ^
catlunch.cpp:10:5: error: ‘priority_queue’ was not declared in this scope
10 | priority_queue<int> p;
| ^~~~~~~~~~~~~~
catlunch.cpp:10:20: error: expected primary-expression before ‘int’
10 | priority_queue<int> p;
| ^~~
catlunch.cpp:12:14: error: ‘INT_MIN’ was not declared in this scope
12 | int mx = INT_MIN;
| ^~~~~~~