Borderou de evaluare (job #2243243)
Utilizator | Data | 20 septembrie 2018 10:20:36 | |
---|---|---|---|
Problema | Pluton | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:73:13: error: redefinition of ‘std::ifstream fin’
ifstream fin("pluton.in");
^
user.cpp:5:10: note: ‘std::ifstream fin’ previously declared here
ifstream fin("pluton.in");
^~~
user.cpp:74:14: error: redefinition of ‘std::ofstream fout’
ofstream fout("pluton.out");
^
user.cpp:6:10: note: ‘std::ofstream fout’ previously declared here
ofstream fout("pluton.out");
^~~~
user.cpp:75:8: error: redefinition of ‘struct soldat’
struct soldat{
^~~~~~
user.cpp:7:8: error: previous definition of ‘struct soldat’
struct soldat{
^~~~~~
user.cpp: In function ‘bool compare(soldat, soldat)’:
user.cpp:81:6: error: redefinition of ‘bool compare(soldat, soldat)’
bool compare(soldat a, soldat b){
^~~~~~~
user.cpp:13:6: note: ‘bool compare(soldat, soldat)’ previously defined here
bool compare(soldat a, soldat b){
^~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:83:5: error: redefinition of ‘int main()’
int main()
^~~~
user.cpp:15:5: note: ‘int main()’ previously defined here
int main()
^~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !