Problem ballgame
User jeongwonho64
Submission Time 2023-08-04 14:23:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballgame.cpp: In function ‘int ballgame(int, int, int, int*, int*)’:
ballgame.cpp:47:57: error: no matching function for call to ‘node::update(int&, int&, int)’
47 | root->update(students[0].second,students[0].second,1);
| ^
ballgame.cpp:16:10: note: candidate: ‘void node::update(int, int)’
16 | void update(int i,int value){
| ^~~~~~
ballgame.cpp:16:10: note: candidate expects 2 arguments, 3 provided
ballgame.cpp:49:128: error: no matching function for call to ‘node::update(int&, int&, int)’
49 | root->update(students[i].second,students[i].second,root->query(max(1,students[i].second-D),min(L,students[i].second+D)));
| ^
ballgame.cpp:16:10: note: candidate: ‘void node::update(int, int)’
16 | void update