Borderou de evaluare (job #726218)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Combinări (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 iul. 2023 10:59:18 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void back(int)':
main.cpp:28:41: error: 'cout' was not declared in this scope
28 | cout<<x[j]<<" ";
| ^~~~
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:30:17: error: 'cout' was not declared in this scope
30 | cout<<endl;
| ^~~~
main.cpp:30:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:23:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
23 | if(OK(k))
| ^