Borderou de evaluare (job #596768)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Alarma (clasa a 6-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 22 apr. 2021 15:54:34 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:29:28: error: 'h' was not declared in this scope; did you mean 'hf'?
29 | int cal = calorie(ora/10, h%10) + calorie(ora%10, minute/10) + calorie(minute/10, minute%10);
| ^
| hf
main.cpp:45:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
45 | while(minute >= 60) minute -= 60; ora += 24;
| ^~~~~
main.cpp:45:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
45 | while(minute >= 60) minute -= 60; ora += 24;
| ^~~