Problem platonic20
User WJR
Submission Time 2025-12-17 11:36:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic20.cpp:5:2: error: expected initializer before ‘int’
5 | int n;
| ^~~
platonic20.cpp:6:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> n;
| ^~~
| sin
platonic20.cpp:7:8: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | int a[n];
| ^
| yn
platonic20.cpp:8:2: error: expected unqualified-id before ‘for’
8 | for(int i = 0; i < n; i++){
| ^~~
platonic20.cpp:8:17: error: ‘i’ does not name a type
8 | for(int i = 0; i < n; i++){
| ^
platonic20.cpp:8:24: error: ‘i’ does not name a type
8 | for(int i = 0; i < n; i++){
| ^
platonic20.cpp:11:2: error: ‘cout’ does not name a type
11 | cout << 0;
| ^~~~
platonic20.cpp:12:2: error: expected unqualified-id before ‘return’
12 | return 0;
| ^~~~~~
platonic2