Borderou de evaluare (job #647314)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Dvorak (clasa a 10-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 apr. 2022 10:28:08 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:13: error: variable 'std::ifstream cin' has initializer but incomplete type
8 | ifstream cin("pinochio.in");
| ^
main.cpp:9:14: error: variable 'std::ofstream cout' has initializer but incomplete type
9 | ofstream cout("pinochio.out");
| ^
main.cpp:15:7: warning: comparison of constant '6' with boolean expression is always true [-Wbool-compare]
15 | if(0<k<6)
| ~~~^~
main.cpp:15:5: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
15 | if(0<k<6)
| ~^~
main.cpp:17:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
17 | if(k=6)
| ~^~
main.cpp:19:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
19 | if( k=7)
| ~^~