Borderou de evaluare (job #2875711)
Utilizator | Data | 22 martie 2022 10:35:46 | |
---|---|---|---|
Problema | Trotuar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:15: error: variable 'std::ofstream cout' has initializer but incomplete type
5 | ofstream cout ("trotuar.in");
| ^
main.cpp: In function 'int main()':
main.cpp:9:5: error: reference to 'cout' is ambiguous
9 | cout << 0;
| ^~~~
In file included from main.cpp:1:
/usr/include/c++/10/iostream:61:18: note: candidates are: 'std::ostream std::cout'
61 | extern ostream cout; /// Linked to standard output
| ^~~~
main.cpp:5:10: note: '<typeprefixerror>cout'
5 | ofstream cout ("trotuar.in");
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !