Problem flamethrower
User laravansteen
Submission Time 2025-02-15 11:27:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int32_t main()’:
flamethrower.cpp:7:2: error: ‘into’ was not declared in this scope; did you mean ‘int’?
7 | into to[n+1],from [int+1];//1-indexed
| ^~~~
| int
flamethrower.cpp:9:10: error: ‘to’ was not declared in this scope; did you mean ‘tm’?
9 | cin >> to[i];//person i received gift to [i]
| ^~
| tm
flamethrower.cpp:12:10: error: ‘to’ was not declared in this scope; did you mean ‘tm’?
12 | cin >> to[i];
| ^~
| tm
flamethrower.cpp:16:9: error: ‘to’ was not declared in this scope; did you mean ‘tm’?
16 | int y=to[x]; //person x received gift y
| ^~
| tm
flamethrower.cpp:17:3: error: ‘from’ was not declared in this scope
17 | from[y]=x; //gift y was given to person x
| ^~~~
flamethrower.cpp:20:11: error: ‘from’ was not declared in this scope
20