Problem platonic9
User cheryltkx
Submission Time 2026-04-18 09:36:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic9.cpp: In function ‘int main()’:
platonic9.cpp:11:3: error: ‘b’ was not declared in this scope
11 | b[j]=a[n-j-1];
| ^
platonic9.cpp:14:8: error: ‘b’ was not declared in this scope
14 | a[j]=b[j]
| ^
platonic9.cpp: At global scope:
platonic9.cpp:17:1: error: expected unqualified-id before ‘for’
17 | for(int i=0;i<n;i++){
| ^~~
platonic9.cpp:17:13: error: ‘i’ does not name a type
17 | for(int i=0;i<n;i++){
| ^
platonic9.cpp:17:17: error: ‘i’ does not name a type
17 | for(int i=0;i<n;i++){
| ^
platonic9.cpp:20:1: error: expected declaration before ‘}’ token
20 | }
| ^