Problem cousin
User justin271828
Submission Time 2024-11-22 22:21:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cousin.cpp: In function ‘void init(int, int*)’:
cousin.cpp:13:24: error: request for member ‘size’ in ‘P’, which is of non-class type ‘int*’
13 | for (int i = 0; i < P.size(); i++) {
| ^~~~
cousin.cpp:17:4: error: ‘v’ was not declared in this scope
17 | v[P[i]].push_back(i);}}
| ^
cousin.cpp:19:25: error: request for member ‘size’ in ‘P’, which is of non-class type ‘int*’
19 | for (int i = 0; i < P.size(); i++) {
| ^~~~