Problem platonic9
User popperoni
Submission Time 2025-12-02 01:53:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic9.cpp: In function ‘int main()’:
platonic9.cpp:78:2: error: expected ‘;’ before ‘if’
78 | if(m%2==0)fori(n)cout<<a[i]<<" ";
| ^~
platonic9.cpp:36:28: error: ‘i’ was not declared in this scope
36 | #define fori(x) for(ll i=0;i<x;i++)
| ^
platonic9.cpp:78:12: note: in expansion of macro ‘fori’
78 | if(m%2==0)fori(n)cout<<a[i]<<" ";
| ^~~~
platonic9.cpp:79:2: error: ‘else’ without a previous ‘if’
79 | else fori(n)cout<<a[n-i-1]<<" ";
| ^~~~