Borderou de evaluare (job #3129098)

Utilizator bent_larsenSturzu Antonio-Gabriel bent_larsen Data 12 mai 2023 16:11:33
Problema Bitwise Party Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int query()': main.cpp:35:26: error: 'v' was not declared in this scope 35 | int ans = 0, n = v.size(); | ^ main.cpp: In function 'int main()': main.cpp:68:24: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'int' 68 | update(pos, val); | ^~~ main.cpp:7:26: note: in passing argument 1 of 'void update(std::vector<int>&, int, int)' 7 | void update(vector<int>& v, int index, int val) | ~~~~~~~~~~~~~^ Non zero exit status: 1

Ceva nu functioneaza?