Borderou de evaluare (job #3240196)

Utilizator PHOSSESSEDProsie Radu-Teodor PHOSSESSED Data 13 august 2024 08:36:12
Problema Arbore Status done
Runda Lista lui wefgef Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:30:58: error: expected ']' before ';' token 30 | for(int i = B + 2; i < nmax; i++) unde[i] += unde[i-1;] | ^ | ] main.cpp:30:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 30 | for(int i = B + 2; i < nmax; i++) unde[i] += unde[i-1;] | ^~~ main.cpp:30:59: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 30 | for(int i = B + 2; i < nmax; i++) unde[i] += unde[i-1;] | ^ main.cpp:30:59: error: expected primary-expression before ']' token main.cpp:31:31: error: 'n' was not declared in this scope 31 | int n, t, q, a, b; cin >> n >> q; | ^ main.cpp:31:36: error: 'q' was not declared in this scope 31 | int n, t, q, a, b; cin >> n >> q; | ^ main.cpp:34:20: error: 'a' was not declared in this scope 34 | cin >> a >> b; fr[unde[i]][0]++; | ^ main.cpp:34:25: error: 'b' was not declared in this scope 34 | cin >> a >> b; fr[unde[i]][0]++; | ^ main.cpp:42:20: error: 't' was not declared in this scope; did you mean 'tm'? 42 | cin >> t >> a; | ^ | tm main.cpp:42:25: error: 'a' was not declared in this scope 42 | cin >> t >> a; | ^ main.cpp:66:28: error: 'b' was not declared in this scope 66 | cin >> b; | ^ Non zero exit status: 1

Ceva nu functioneaza?