Problem wires
User wongyikai
Submission Time 2024-02-03 16:45:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wires.cpp: In function ‘void wire(int, int, int*)’:
wires.cpp:3:2: error: ‘ll’ was not declared in this scope
3 | ll curr=0;
| ^~
wires.cpp:4:4: error: expected ‘;’ before ‘x’
4 | ll x=1,y=1;
| ^~
| ;
wires.cpp:5:9: error: ‘x’ was not declared in this scope
5 | while (x<=n && y <=n){
| ^
wires.cpp:5:17: error: ‘y’ was not declared in this scope
5 | while (x<=n && y <=n){
| ^
wires.cpp:8:10: error: ‘curr’ was not declared in this scope
8 | order[curr] = 1;
| ^~~~
wires.cpp:13:10: error: ‘curr’ was not declared in this scope
13 | order[curr] = 0;
| ^~~~
wires.cpp:18:6: error: ‘x’ was not declared in this scope
18 | if (x>n){
| ^
wires.cpp:19:10: error: ‘y’ was not declared in this scope
19 | while (y<=n){
| ^
wires.cpp:20:10: error: ‘cur