Borderou de evaluare (job #3277578)

Utilizator RaduBraduBerger Radu RaduBradu Data 16 februarie 2025 18:24:32
Problema Cantitate maximă la transport de carburanți Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void greedy(int, int, int)': main.cpp:20:21: error: 'v' was not declared in this scope 20 | greedy(i+1,suma+v[i],ct+1); | ^ main.cpp: In function 'int main()': main.cpp:30:14: error: 's' was not declared in this scope 30 | f>>n>>c;s=0;ct=0; | ^ main.cpp:32:13: error: 'v' was not declared in this scope 32 | f>>v[i]; | ^ main.cpp:36:16: error: 'v' was not declared in this scope 36 | if(v[i]<v[j]) | ^ main.cpp:41:6: error: 'subm' was not declared in this scope 41 | subm(0,0,0); | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?