Problem xmas
User LeonloveMc
Submission Time 2025-02-15 11:11:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int main()’:
xmas.cpp:7:5: error: ‘in’ was not declared in this scope; did you mean ‘n’?
7 | in to[n+1], from[n+1];
| ^~
| n
xmas.cpp:9:16: error: ‘to’ was not declared in this scope; did you mean ‘tm’?
9 | cin >> to[i];
| ^~
| tm
xmas.cpp:12:17: error: ‘to’ was not declared in this scope; did you mean ‘tm’?
12 | int y = to[x];
| ^~
| tm
xmas.cpp:13:9: error: ‘from’ was not declared in this scope
13 | from[y]=x;
| ^~~~
xmas.cpp:16:17: error: ‘from’ was not declared in this scope
16 | cout << from[i] << "\n";
| ^~~~