Borderou de evaluare (job #584628)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cezar (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 mar. 2021 14:27:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:14: warning: missing terminating " character
4 | ifstream in ("cezar.in);
| ^
main.cpp:4:14: error: missing terminating " character
4 | ifstream in ("cezar.in);
| ^~~~~~~~~~~
main.cpp:5:14: warning: missing terminating " character
5 | ofstream out("cezar.out);
| ^
main.cpp:5:14: error: missing terminating " character
5 | ofstream out("cezar.out);
| ^~~~~~~~~~~~
main.cpp:7:11: error: expected ')' before '{' token
7 | int main()
| ^
| )
8 | {
| ~
main.cpp:5:13: note: to match this '('
5 | ofstream out("cezar.out);
| ^
main.cpp:7:11: error: expected ')' before '{' token
7 | int main()
| ^
| )
8 | {
| ~
main.cpp:4:13: note: to match this '('
4 | ifstream in ("cezar.in);
| ^
main.cpp: In function 'std::ifstream in(std::ofstream (*)(int (*)()))':
main.cpp:10:12: error: invalid operands of types 'std::ifstream(std::ofstream (*)(int (*)()))' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char> (*)(int (*)()))'} and 'char' to binary 'operator>>'
10 | while(in>>c)
| ~~^~~
| | |
| | char
| std::ifstream(std::ofstream (*)(int (*)())) {aka std::basic_ifstream<char>(std::basic_ofstream<char> (*)(int (*)()))}
main.cpp:13:10: error: invalid operands of types 'std::ofstream (*)(int (*)())' {aka 'std::basic_ofstream<char> (*)(int (*)())'} and 'char' to binary 'operator<<'
13 | out<<c;
| ~~~^~~
| | |
| | char
| std::ofstream (*)(int (*)()) {aka std::basic_ofstream<char> (*)(int (*)())}
main.cpp:15:11: error: could not convert '0' from 'int' to 'std::ifstream' {aka 'std::basic_ifstream<char>'}
15 | return 0;
| ^
| |
| int