Borderou de evaluare (job #2472729)
Utilizator | Data | 12 octombrie 2019 19:10:20 | |
---|---|---|---|
Problema | Editor | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:56:22: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
else if(a[j]==4)
^
main.cpp:61:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(ok==0)
^
main.cpp: At global scope:
main.cpp:72:13: error: redefinition of 'std::ifstream fin'
ifstream fin("editor.in");
^
main.cpp:4:10: note: 'std::ifstream fin' previously declared here
ifstream fin("editor.in");
^~~
main.cpp:73:14: error: redefinition of 'std::ofstream fout'
ofstream fout("editor.out");
^
main.cpp:5:10: note: 'std::ofstream fout' previously declared here
ofstream fout("editor.out");
^~~~
main.cpp: In function 'int main()':
main.cpp:81:5: error: redefinition of 'int main()'
int main()
^~~~
main.cpp:13:5: note: 'int main()' previously defined here
int main()
^~~~
main.cpp:124:22: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
else if(a[j]==4)
^
main.cpp:129:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(ok==0)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !