Borderou de evaluare (job #721062)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Balon (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 23 mai 2023 16:07:08 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:5: error: 'cin' was not declared in this scope
12 | cin>>c>>m>>n>>k>>p;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:32:9: error: 'cout' was not declared in this scope
32 | cout<<cnt1;
| ^~~~
main.cpp:32:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:11:32: warning: unused variable 'ok' [-Wunused-variable]
11 | int c,m,n,p,k,x,y,d,cnt1=0,ok=0;
| ^~