Problem | catlunch |
---|---|
User | dev1634 |
Submission Time | 2023-03-08 17:15:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int main()’:
catlunch.cpp:24:1: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
24 | ans += pq.top();
| ^~~
| abs
catlunch.cpp: At global scope:
catlunch.cpp:38:5: error: expected declaration before ‘}’ token
38 | }
| ^
catlunch.cpp:39:1: error: ‘cout’ does not name a type
39 | cout << ans << "\n";
| ^~~~
catlunch.cpp:40:1: error: expected unqualified-id before ‘for’
40 | for (int a = 0; a < num; a ++) {
| ^~~
catlunch.cpp:40:17: error: ‘a’ does not name a type
40 | for (int a = 0; a < num; a ++) {
| ^
catlunch.cpp:40:26: error: ‘a’ does not name a type
40 | for (int a = 0; a < num; a ++) {
| ^