Borderou de evaluare (job #665123)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Aritmetica2 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 30 sept. 2022 10:51:25 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:6:4: error: expected ';' before numeric constant
6 | {45 2 8
| ^~
| ;
main.cpp:6:2: warning: statement has no effect [-Wunused-value]
6 | {45 2 8
| ^~
main.cpp:8:4: error: 'cin' was not declared in this scope
8 | cin>>n>>x>>m;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | using namespace std;
main.cpp:8:9: error: 'n' was not declared in this scope
8 | cin>>n>>x>>m;
| ^
main.cpp:8:12: error: 'x' was not declared in this scope
8 | cin>>n>>x>>m;
| ^
main.cpp:8:15: error: 'm' was not declared in this scope; did you mean 'tm'?
8 | cin>>n>>x>>m;
| ^
| tm
main.cpp:11:8: error: 'sum' was not declared in this scope
11 | sum=n+m;
| ^~~
main.cpp:12:8: error: 'cout' was not declared in this scope
12 | cout<<sum;
| ^~~~
main.cpp:12:8: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:16:8: error: 'scad' was not declared in this scope
16 | scad=n-m;
| ^~~~
main.cpp:17:8: error: 'cout' was not declared in this scope
17 | cout<<scad;
| ^~~~
main.cpp:17:8: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:22:8: error: 'prod' was not declared in this scope
22 | prod=n*m;
| ^~~~
main.cpp:23:8: error: 'cout' was not declared in this scope
23 | cout<<prod;
| ^~~~
main.cpp:23:8: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:29:8: error: 'cat' was not declared in this scope
29 | cat=n/m;
| ^~~
main.cpp:30:8: error: 'rest' was not declared in this scope