Problem gcd
User shashi93
Submission Time 2024-02-17 17:44:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:8:9: error: expected ‘;’ before ‘if’
8 | a = a%b
| ^
| ;
9 | if ( a % b == 0 ){
| ~~
gcd.cpp:12:2: error: ‘else’ without a previous ‘if’
12 | else if ( b % a == 0 ){
| ^~~~