Borderou de evaluare (job #2892148)
Utilizator | Data | 20 aprilie 2022 23:04:15 | |
---|---|---|---|
Problema | DoiPatru | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:2: error: invalid preprocessing directive #ifstream
5 | #ifstream in("doipatru.in");
| ^~~~~~~~
main.cpp:6:2: error: invalid preprocessing directive #ofstream
6 | #ofstream out("doipatru.out");
| ^~~~~~~~
main.cpp:8:2: error: #endif without #if
8 | #endif // in
| ^~~~~
main.cpp: In function 'int main()':
main.cpp:80:5: error: 'in' was not declared in this scope; did you mean 'n'?
80 | in >> n >> k;
| ^~
| n
main.cpp:104:13: error: 'out' was not declared in this scope
104 | out << 1 << '\n';
| ^~~
main.cpp:106:13: error: 'out' was not declared in this scope
106 | out << 2 << '\n';
| ^~~
main.cpp:108:13: error: 'out' was not declared in this scope
108 | out << 0 << '\n';
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !