Borderou de evaluare (job #3187985)
Utilizator | Data | 31 decembrie 2023 19:32:55 | |
---|---|---|---|
Problema | Senat | 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:59:14: error: redeclaration of 'std::ifstream fin'
59 | ifstream fin("file.in"); cin.rdbuf(fin.rdbuf());
| ^~~
main.cpp:55:14: note: 'std::ifstream fin' previously declared here
55 | ifstream fin("senat.in"); ofstream fout("senat.out");
| ^~~
main.cpp:60:14: error: redeclaration of 'std::ofstream fout'
60 | ofstream fout("file.out"); cout.rdbuf(fout.rdbuf());
| ^~~~
main.cpp:55:40: note: 'std::ofstream fout' previously declared here
55 | ifstream fin("senat.in"); ofstream fout("senat.out");
| ^~~~
main.cpp:89:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | for (int j = 0; j < aux.size(); j++) {
| ~~^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !