Problem divideby2
User Abi
Submission Time 2024-08-25 19:57:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

divideby2.cpp: In function ‘int main()’:
divideby2.cpp:11:26: error: expected ‘;’ before ‘double’
11 | cout << a << " " << b
| ^
| ;
12 |
13 | double c = (double)N / 2.0;
| ~~~~~~
divideby2.cpp:14:41: error: ‘c’ was not declared in this scope
14 | cout << fixed << setprecision(1) << c;
| ^