Problem xmas
User mth4z
Submission Time 2023-05-10 17:12:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int main()’:
xmas.cpp:11:13: error: expected ‘]’ before ‘;’ token
11 | arr[g[i]=i;
| ^
| ]
xmas.cpp:13:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | for (int i=1; i<=g; i++){
| ^
xmas.cpp:14:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
14 | cout<<ans[i] << "\n";
| ^~~
| abs