Problem | mathexam |
---|---|
User | back2square1 |
Submission Time | 2024-01-19 15:12:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mathexam.cpp: In function ‘void r1dp(double)’:
mathexam.cpp:10:44: error: expected ‘;’ before ‘cout’
10 | if ((int)(round(x*10)) == (round(x*10)) cout << ".0";
| ^~~~~
| ;
mathexam.cpp:11:17: error: expected ‘)’ before ‘;’ token
11 | cout << '\n';
| ^
| )
mathexam.cpp:10:8: note: to match this ‘(’
10 | if ((int)(round(x*10)) == (round(x*10)) cout << ".0";
| ^
mathexam.cpp: In function ‘void r2dp(double)’:
mathexam.cpp:18:46: error: expected ‘;’ before ‘cout’
18 | if ((int)(round(x*100)) == (round(x*100)) cout << ".00";
| ^~~~~
| ;
mathexam.cpp:19:17: error: expected ‘)’ before ‘;’ token
19 | cout << '\n';
|