Borderou de evaluare (job #787706)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Monotonă (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 sept. 2024 18:13:33 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:19:9: error: 'cout' was not declared in this scope
19 | cout<<"Secvența este crescătoare.";
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:22:9: error: 'cout' was not declared in this scope
22 | cout<<"Secvența este descrescătoare.";
| ^~~~
main.cpp:22:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:24:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
24 | if(c=b){
| ~^~
main.cpp:25:9: error: 'cout' was not declared in this scope
25 | cout<<"Secvența poate fi și crescătoare si descrescătoare.";
| ^~~~
main.cpp:25:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?