Borderou de evaluare (job #681899)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Algebra (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 14 dec. 2022 15:57:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:10: error: conflicting declaration 'std::ofstream cin'
4 | ofstream cin("algebra.out");
| ^~~
main.cpp:3:10: note: previous declaration as 'std::ifstream cin'
3 | ifstream cin("algebra.in");
| ^~~
main.cpp: In function 'int main()':
main.cpp:19:9: error: 'cout' was not declared in this scope
19 | cout<<a;
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | using namespace std;
main.cpp:31:9: error: 'cout' was not declared in this scope
31 | cout<<n/a*m;
| ^~~~
main.cpp:31:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:36:19: error: 'm' was not declared in this scope
36 | for(int i=m ; i<= n ; i++ )
| ^
main.cpp:37:18: error: 'k' was not declared in this scope
37 | if(i%k==0)
| ^
main.cpp:40:9: error: 'cout' was not declared in this scope
40 | cout<<cnt;
| ^~~~
main.cpp:40:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:45:15: error: 'c' was not declared in this scope
45 | while(c>1)
| ^
main.cpp:53:9: error: 'cout' was not declared in this scope
53 | cout<<d;
| ^~~~
main.cpp:53:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:60:13: error: 'z' was not declared in this scope
60 | z*=10;
| ^
main.cpp:65:18: error: 'z' was not declared in this scope
65 | cn=a%z;
| ^
main.cpp:70:9: error: 'cout' was not declared in this scope
70 | cout<< maxx;
| ^~~~
main.cpp:70:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?