Problem gcd
User ShreyasBhat
Submission Time 2026-01-21 15:51:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:11:2: error: expected ‘,’ or ‘;’ before ‘if’
11 | if ( b%c == 0) {
| ^~
gcd.cpp:14:2: error: ‘else’ without a previous ‘if’
14 | else if ( c==0 ) {
| ^~~~
gcd.cpp:15:12: error: expected ‘;’ before ‘}’ token
15 | cout << a
| ^
| ;
16 | }
| ~
gcd.cpp:18:12: error: expected ‘;’ before ‘}’ token
18 | cout << 0
| ^
| ;
19 | }
| ~