Borderou de evaluare (job #722369)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Control (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 30 mai 2023 16:59:42 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:5: error: 'cin' was not declared in this scope
15 | cin>>n;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <algorithm>
+++ |+#include <iostream>
3 | using namespace std;
main.cpp:32:18: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
32 | if(m[i]%2==m[i+1]%2==m[i+2]%2){
| ~~~~~~^~~~~~~~~~
main.cpp:54:5: error: 'cout' was not declared in this scope
54 | cout<<r-2<<endl;
| ^~~~
main.cpp:54:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?