Borderou de evaluare (job #3311978)

Utilizator Mihai_OctMihai Octavian Mihai_Oct Data 25 septembrie 2025 10:39:57
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Add(int, int)': main.cpp:10:45: error: 'a' was not declared in this scope 10 | for(int i = poz; i <= n; i += (i & -i)) a[i] += val; | ^ main.cpp: In function 'int Sum(int)': main.cpp:15:52: error: 'a' was not declared in this scope 15 | for(int i = poz; i >= 1; i -= (i & -i)) sum += a[i]; | ^ main.cpp: In function 'int main()': main.cpp:31:16: error: 'op' was not declared in this scope 31 | fin >> op >> x >> y; | ^~ main.cpp:31:27: error: 'y' was not declared in this scope; did you mean 'yn'? 31 | fin >> op >> x >> y; | ^ | yn Non zero exit status: 1

Ceva nu functioneaza?