Problem | xmas |
---|---|
User | LeonloveMc |
Submission Time | 2025-02-15 11:10:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:9: error: expected identifier before ‘int’
12 | int y = to[x];
| ^~~
xmas.cpp:12:22: error: expected ‘]’ before ‘;’ token
12 | int y = to[x];
| ^
| ]
xmas.cpp: In lambda function:
xmas.cpp:12:22: error: expected ‘{’ before ‘;’ token
xmas.cpp: In function ‘int main()’:
xmas.cpp:13:9: error: ‘from’ was not declared in this scope
13 | from[y]=x;
| ^~~~
xmas.cpp:13:14: error: ‘y’ was not declared in this scope
13 | from[y]=x;
| ^