Problem gcd
User shashi93
Submission Time 2024-02-17 13:38:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:7:18: error: expected ‘;’ before ‘if’
7 | h = max(a, b)
| ^
| ;
8 | if ( a % b == 0 ){
| ~~
gcd.cpp:11:2: error: ‘else’ without a previous ‘if’
11 | else if ( b % a == 0 ){
| ^~~~