Borderou de evaluare (job #695430)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Numere8 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 14 feb. 2023 19:55:58 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:14: warning: missing terminating " character
4 | ifstream fin("numere8.in);
| ^
main.cpp:4:14: error: missing terminating " character
4 | ifstream fin("numere8.in);
| ^~~~~~~~~~~~~
main.cpp:5:14: error: expected ',' or '...' before '(' token
5 | ofstream fout("numere8.out");
| ^
main.cpp:5:29: error: expected ')' before ';' token
5 | ofstream fout("numere8.out");
| ^
| )
main.cpp:4:13: note: to match this '('
4 | ifstream fin("numere8.in);
| ^
main.cpp: In function 'int main()':
main.cpp:9:8: error: invalid operands of types 'std::ifstream(std::ofstream)' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char>)'} and 'int' to binary 'operator>>'
9 | fin>>c;;
| ~~~^~~
| | |
| | int
| std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}
main.cpp:12:12: error: invalid operands of types 'std::ifstream(std::ofstream)' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char>)'} and 'int' to binary 'operator>>'
12 | fin>>n;
| ~~~^~~
| | |
| | int
| std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}
main.cpp:15:16: error: invalid operands of types 'std::ifstream(std::ofstream)' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char>)'} and 'int' to binary 'operator>>'
15 | fin>>pas;
| ~~~^~~~~
| | |
| | int
| std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}
main.cpp:21:9: error: 'cout' was not declared in this scope
21 | cout<<x;
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:25:12: error: invalid operands of types 'std::ifstream(std::ofstream)' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char>)'} and 'int' to binary 'operator>>'
25 | fin>>k;
| ~~~^~~
| | |
| | int
| std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}
main.cpp:52:9: error: 'fout' was not declared in this scope
52 | fout<<s;