Problem | snakecode |
---|---|
User | Celenium |
Submission Time | 2022-12-22 18:30:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snakecode.cpp: In function ‘void code(int, std::string*, int*)’:
snakecode.cpp:6:19: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’ in assignment
6 | pref[0] = {0,1};
| ^
snakecode.cpp:9:34: error: request for member ‘first’ in ‘pref[i]’, which is of non-class type ‘int’
9 | pref[i+1] = {pref[i].first + V[i], pref[i].second};
| ^~~~~
snakecode.cpp:9:56: error: request for member ‘second’ in ‘pref[i]’, which is of non-class type ‘int’
9 | pref[i+1] = {pref[i].first + V[i], pref[i].second};
| ^~~~~~
snakecode.cpp:9:62: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’ in assignment
9 | pref[i+1] = {pref[i].first + V[i], pref[i].second};
| ^
snakecode.cpp:12:3