Problem platonic
User Slayer
Submission Time 2026-02-13 16:00:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic.cpp: In function ‘int main()’:
platonic.cpp:21:12: error: ‘x’ was not declared in this scope
21 | while (x!=0)
| ^
platonic.cpp:22:17: error: ‘x’ was not declared in this scope
22 | int x; cin >> x;
| ^
platonic.cpp: At global scope:
platonic.cpp:25:5: error: ‘cout’ does not name a type
25 | cout << pq.top();
| ^~~~
platonic.cpp:27:1: error: expected unqualified-id before ‘return’
27 | return 0;
| ^~~~~~
platonic.cpp:28:1: error: expected declaration before ‘}’ token
28 | }
| ^