Borderou de evaluare (job #664483)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Aritmetica2 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 27 sept. 2022 11:31:23 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:1: error: 'include' does not name a type
1 | include <fstream>
| ^~~~~~~
main.cpp:4:1: error: 'ifstream' does not name a type
4 | ifstream in("aritmetica2.in");
| ^~~~~~~~
main.cpp:5:1: error: 'ofstream' does not name a type
5 | ofstream out("aritmetica2.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:9:5: error: 'in' was not declared in this scope; did you mean 'n'?
9 | in>>a>>n>>b;
| ^~
| n
main.cpp:11:9: error: 'out' was not declared in this scope
11 | out<<a+b;
| ^~~
main.cpp:13:9: error: 'out' was not declared in this scope
13 | out<<a-b;
| ^~~
main.cpp:15:9: error: 'out' was not declared in this scope
15 | out<<a*b;
| ^~~
main.cpp:17:9: error: 'out' was not declared in this scope
17 | out<<a/b<<" "<<a%b;
| ^~~