Problem platonic10
User KingH
Submission Time 2026-02-09 16:22:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic10.cpp: In function ‘int main()’:
platonic10.cpp:7:23: error: ‘n’ was not declared in this scope
7 | for (int i = 1; i <= n; i++){
| ^
platonic10.cpp:11:2: error: expected ‘,’ or ‘;’ before ‘if’
11 | if (s[s.length()-1] == "0"){
| ^~
platonic10.cpp:14:2: error: ‘else’ without a previous ‘if’
14 | else{
| ^~~~
platonic10.cpp:16:2: error: expected ‘}’ at end of input
16 | }
| ^
platonic10.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^