Borderou de evaluare (job #1638882)

Utilizator deliricnagisa deliric Data 8 martie 2016 09:47:37
Problema Take 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:64:11: error: redefinition of ‘std::ifstream f’ ifstream f("lanterna.in"); ^ user.cpp:4:10: error: ‘std::ifstream f’ previously declared here ifstream f("petrica.in"); ofstream g("petrica.out"); ^ user.cpp:65:11: error: redefinition of ‘std::ofstream g’ ofstream g("lanterna.out"); ^ user.cpp:4:36: error: ‘std::ofstream g’ previously declared here ifstream f("petrica.in"); ofstream g("petrica.out"); ^ user.cpp: In function ‘int main()’: user.cpp:146:5: error: redefinition of ‘int main()’ int main() ^ user.cpp:19:5: error: ‘int main()’ previously defined here int main() ^ user.cpp: At global scope: user.cpp:157:11: error: redefinition of ‘std::ifstream f’ ifstream f("noname.in"); ofstream g("noname.out"); ^ user.cpp:4:10: error: ‘std::ifstream f’ previously declared here ifstream f("petrica.in"); ofstream g("petrica.out"); ^ user.cpp:157:36: error: redefinition of ‘std::ofstream g’ ifstream f("noname.in"); ofstream g("noname.out"); ^ user.cpp:4:36: error: ‘std::ofstream g’ previously declared here ifstream f("petrica.in"); ofstream g("petrica.out"); ^ user.cpp:159:5: error: redefinition of ‘int n’ int n,k,i,j,t,a[Nmax],b[Nmax]; ^ user.cpp:5:5: error: ‘int n’ previously declared here int n,i,j,k,nr,difmin=20000000; ^ user.cpp:159:7: error: redefinition of ‘int k’ int n,k,i,j,t,a[Nmax],b[Nmax]; ^ user.cpp:5:11: error: ‘int k’ previously declared here int n,i,j,k,nr,difmin=20000000; ^ user.cpp:159:9: error: redefinition of ‘int i’ int n,k,i,j,t,a[Nmax],b[Nmax]; ^ user.cpp:5:7: error: ‘int i’ previously declared here int n,i,j,k,nr,difmin=20000000; ^

Ceva nu functioneaza?