Problem | lostones |
---|---|
User | JJ1234 |
Submission Time | 2024-12-21 11:42:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
lostones.cpp: In function ‘int main()’:
lostones.cpp:20:31: error: ‘j’ was not declared in this scope
20 | minHeap.push(ai + j * bi);
| ^
lostones.cpp: At global scope:
lostones.cpp:24:5: error: expected unqualified-id before ‘while’
24 | while (K-- > 0) {
| ^~~~~
lostones.cpp:29:5: error: ‘cout’ does not name a type
29 | cout << totalConfusion << endl;
| ^~~~
lostones.cpp:31:5: error: expected unqualified-id before ‘return’
31 | return 0;
| ^~~~~~
lostones.cpp:32:1: error: expected declaration before ‘}’ token
32 | }
| ^