Problem ccs
User louisleehi
Submission Time 2024-03-14 18:25:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp:56:5: error: ‘void node::sleep(int)’ conflicts with a previous declaration
56 | }
| ^
ccs.cpp:9:10: note: previous declaration ‘bool node::sleep’
9 | bool sleep;
| ^~~~~
ccs.cpp: In member function ‘void node::sleep(int)’:
ccs.cpp:53:30: error: expression cannot be used as a function
53 | if (x > m) r->sleep(x);
| ^
ccs.cpp:54:24: error: expression cannot be used as a function
54 | else l->sleep(x);
| ^
ccs.cpp: In function ‘int main()’:
ccs.cpp:93:28: error: expression cannot be used as a function
93 | root->sleep(cat);
| ^