Problem | divideby2 |
---|---|
User | nguyendinhanh1508 |
Submission Time | 2024-12-02 13:05:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
divideby2.cpp: In function ‘int32_t main()’:
divideby2.cpp:12:10: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
12 | if(n % 2 != 0) cout << fixed << setprecision(1) << bruh;
| ~ ^ ~
| | |
| | int
| double