Problem towers_noi
User CHF
Submission Time 2025-02-25 19:12:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

towers_noi.cpp:9:8: error: redefinition of ‘struct node’
9 | struct node
| ^~~~
towers_noi.cpp:5:8: note: previous definition of ‘struct node’
5 | struct node
| ^~~~
towers_noi.cpp: In function ‘bool cmp(node, node)’:
towers_noi.cpp:16:2: error: return-statement with no value, in function returning ‘bool’ [-fpermissive]
16 | return ;
| ^~~~~~
towers_noi.cpp: In function ‘int main()’:
towers_noi.cpp:24:16: error: request for member ‘x1’ in ‘r[a[i].node::x]’, which is of non-class type ‘int’
24 | if(r[a[i].x].x1==0) r[a[i].x].x1=a[i].y;
| ^~
towers_noi.cpp:24:33: error: request for member ‘x1’ in ‘r[a[i].node::x]’, which is of non-class type ‘int’
24 | if(r[a[i].x].x1==0) r[a[i].x].x1=a[i].y;
| ^~
towers_noi.cpp:25:13: error: request for member ‘x1’ in ‘r[a[i].node::x]’, which is of non-class type ‘int’
25 | r[a[i].x]