Borderou de evaluare (job #583782)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Consiliu (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Concurs 7 clasa a 5-a | Status | evaluat |
Dată | 28 feb. 2021 18:34:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'cin' was not declared in this scope
8 | cin >> n >> hs >> ms >> hf >> mf >> total;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | using namespace std;
main.cpp:10:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
10 | if(hs=hf)
| ~~^~~
main.cpp:10:13: error: expected statement at end of input
10 | if(hs=hf)
| ^
main.cpp:10:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
10 | if(hs=hf)
| ^~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
main.cpp:10:13: error: expected '}' at end of input
10 | if(hs=hf)
| ^
main.cpp:6:1: note: to match this '{'
6 | {
| ^