Problem divideby2
User Henries
Submission Time 2024-06-06 10:59:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

divideby2.cpp: In function ‘int main()’:
divideby2.cpp:7:2: error: ‘quotient’ was not declared in this scope
7 | quotient = num / 2;
| ^~~~~~~~
divideby2.cpp:8:19: error: overloaded function with no contextual type information
8 | remainder = num %2;
| ^
divideby2.cpp:9:2: error: ‘answer’ was not declared in this scope
9 | answer = num2 / 2;
| ^~~~~~