Problem evolution
User Tyx2019
Submission Time 2026-05-30 23:12:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evolution.cpp: In function ‘void upd(int, int)’:
evolution.cpp:18:17: error: request for member ‘push_back’ in ‘V[x]’, which is of non-class type ‘int [3]’
18 | if(ok) V[x].push_back(y);
| ^~~~~~~~~
evolution.cpp:19:14: error: request for member ‘size’ in ‘V[x]’, which is of non-class type ‘int [3]’
19 | if (V[x].size() == 3) {
| ^~~~
evolution.cpp:24:16: error: request for member ‘size’ in ‘V[x]’, which is of non-class type ‘int [3]’
24 | else if (V[x].size() == 4) {
| ^~~~
evolution.cpp:33:10: error: request for member ‘size’ in ‘V[x]’, which is of non-class type ‘int [3]’
33 | if(V[x].size() == 4) V[x].pop_back();
| ^~~~
evolution.cpp:33:28: error: request for member ‘pop_back’ in ‘V[x]’, which is of non-class type ‘int [3]’
33 | if(V[x].size() == 4) V[x].pop_back();
| ^~~~~~~~