Borderou de evaluare (job #3376770)

Utilizator irina_opreaIrina Oprea irina_oprea Data 19 noiembrie 2026 15:51:40
Problema Rusuoaica Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:33:5: error: expected ',' or ';' before 'int' 33 | int n, m, af, a, b, c, cost=0, sell=0, ind=0; | ^~~ main.cpp:34:12: error: 'n' was not declared in this scope 34 | cin >> n >> m >> af; | ^ main.cpp:34:17: error: 'm' was not declared in this scope; did you mean 'tm'? 34 | cin >> n >> m >> af; | ^ | tm main.cpp:34:22: error: 'af' was not declared in this scope 34 | cin >> n >> m >> af; | ^~ main.cpp:38:16: error: 'a' was not declared in this scope 38 | cin >> a >> b >> c; | ^ main.cpp:38:21: error: 'b' was not declared in this scope 38 | cin >> a >> b >> c; | ^ main.cpp:38:26: error: 'c' was not declared in this scope 38 | cin >> a >> b >> c; | ^ main.cpp:41:13: error: 'sell' was not declared in this scope 41 | sell += c; | ^~~~ main.cpp:45:19: error: 'ind' was not declared in this scope; did you mean 'int'? 45 | edges[ind].a = a; edges[ind].b = b; edges[ind].c = c; | ^~~ | int main.cpp:49:23: error: 'ind' was not declared in this scope; did you mean 'int'? 49 | sort(edges, edges+ind, comp); | ^~~ | int main.cpp:52:9: error: 'c' was not declared in this scope 52 | c = edges[i].c; a = edges[i].a; b = edges[i].b; | ^ main.cpp:52:25: error: 'a' was not declared in this scope 52 | c = edges[i].c; a = edges[i].a; b = edges[i].b; | ^ main.cpp:52:41: error: 'b' was not declared in this scope 52 | c = edges[i].c; a = edges[i].a; b = edges[i].b; | ^ main.cpp:55:13: error: 'cost' was not declared in this scope; did you mean 'cout'? 55 | cost += c; | ^~~~ | cout main.cpp:57:14: error: 'sell' was not declared in this scope 57 | else sell += c; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?