Problem xmas
User Yifei1234
Submission Time 2023-05-10 17:05:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int main()’:
xmas.cpp:10:12: error: invalid types ‘int[int]’ for array subscript
10 | cin>>gift[i];
| ^
xmas.cpp:11:11: error: invalid types ‘int[int]’ for array subscript
11 | arr[gift[i]]=i;
| ^