Problem | race |
---|---|
User | Sans12345 |
Submission Time | 2024-04-02 19:48:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
race.cpp: In function ‘ll findsz(ll, ll, ll)’:
race.cpp:14:23: error: cannot convert ‘std::array<int, 2>’ to ‘ll’ {aka ‘int’} in initialization
14 | for(ll child:adj[x]) if(child!=p && !vis[child]) sz[x] += findsz(child,x,cp);
| ^
race.cpp: In function ‘ll findcent(ll, ll, ll)’:
race.cpp:18:23: error: cannot convert ‘std::array<int, 2>’ to ‘ll’ {aka ‘int’} in initialization
18 | for(ll child:adj[x]) if(child!=p && !vis[child]){
| ^
race.cpp:19:53: error: invalid conversion from ‘ll*’ {aka ‘int*’} to ‘ll’ {aka ‘int’} [-fpermissive]
19 | if(sz[child]>csz/2) return findcent(child,x,sz);
| ^~
| |
| ll* {aka int*}
race.cpp:17:26: note: initializing argument 3 of ‘ll findcent(ll, ll, ll