Borderou de evaluare (job #3277565)

Utilizator RaduBraduBerger Radu RaduBradu Data 16 februarie 2025 17:52:43
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:6:5: error: redefinition of 'int t' 6 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:5:5: note: 'int t' previously declared here 5 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:6:7: error: redefinition of 'int n' 6 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:5:7: note: 'int n' previously declared here 5 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:6:9: error: redefinition of 'int c' 6 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:5:9: note: 'int c' previously declared here 5 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:6:11: error: redefinition of 'int v [100]' 6 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:5:11: note: 'int v [100]' previously declared here 5 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:6:18: error: redefinition of 'int s' 6 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:5:18: note: 'int s' previously declared here 5 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:6:20: error: redefinition of 'int ct' 6 | int t,n,c,v[100],s,ct,i,j; | ^~ main.cpp:5:20: note: 'int ct' previously declared here 5 | int t,n,c,v[100],s,ct,i,j; | ^~ main.cpp:6:23: error: redefinition of 'int i' 6 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:5:23: note: 'int i' previously declared here 5 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:6:25: error: redefinition of 'int j' 6 | int t,n,c,v[100],s,ct,i,j; | ^ main.cpp:5:25: note: 'int j' previously declared here 5 | int t,n,c,v[100],s,ct,i,j; | ^ Non zero exit status: 1

Ceva nu functioneaza?