Borderou de evaluare (job #2949775)

Utilizator Giulian617Buzatu Giulian Giulian617 Data 1 decembrie 2022 17:49:15
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:91:10: error: redefinition of 'std::ifstream f' 91 | ifstream f("lanterna.in"); | ^ main.cpp:3:10: note: 'std::ifstream f' previously declared here 3 | ifstream f("lanterna.in"); | ^ main.cpp:92:10: error: redefinition of 'std::ofstream g' 92 | ofstream g("lanterna.out"); | ^ main.cpp:4:10: note: 'std::ofstream g' previously declared here 4 | ofstream g("lanterna.out"); | ^ main.cpp:93:11: error: redefinition of 'const int NMAX' 93 | const int NMAX=1005,INF=0x3F3F3F3F; | ^~~~ main.cpp:5:11: note: 'const int NMAX' previously defined here 5 | const int NMAX=1005,INF=0x3F3F3F3F; | ^~~~ main.cpp:93:21: error: redefinition of 'const int INF' 93 | const int NMAX=1005,INF=0x3F3F3F3F; | ^~~ main.cpp:5:21: note: 'const int INF' previously defined here 5 | const int NMAX=1005,INF=0x3F3F3F3F; | ^~~ main.cpp:94:5: error: redefinition of 'int n' 94 | int n,k,m,x,y,t,w,dist_min,w_min; | ^ main.cpp:6:5: note: 'int n' previously declared here 6 | int n,k,m,x,y,t,w,dist_min,w_min; | ^ main.cpp:94:7: error: redefinition of 'int k' 94 | int n,k,m,x,y,t,w,dist_min,w_min; | ^ main.cpp:6:7: note: 'int k' previously declared here 6 | int n,k,m,x,y,t,w,dist_min,w_min; | ^ main.cpp:94:9: error: redefinition of 'int m' 94 | int n,k,m,x,y,t,w,dist_min,w_min; | ^ main.cpp:6:9: note: 'int m' previously declared here 6 | int n,k,m,x,y,t,w,dist_min,w_min; | ^ main.cpp:94:11: error: redefinition of 'int x' 94 | int n,k,m,x,y,t,w,dist_min,w_min; | ^ main.cpp:6:11: note: 'int x' previously declared here 6 | int n,k,m,x,y,t,w,dist_min,w_min; | ^ main.cpp:94:13: error: redefinition of 'int y' 94 | int n,k,m,x,y,t,w,dist_min,w_min; Non zero exit status: 1

Ceva nu functioneaza?