Problem gcd
User Dannyboy
Submission Time 2023-11-08 12:44:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:5:2: error: expected initializer before ‘cin’
5 | cin >> a >> b
| ^~~
gcd.cpp:9:3: error: ‘else’ without a previous ‘if’
9 | }else{
| ^~~~
gcd.cpp:10:12: error: ‘b’ was not declared in this scope
10 | int c=(a,b mod a)
| ^
gcd.cpp:10:13: error: expected ‘)’ before ‘mod’
10 | int c=(a,b mod a)
| ~ ^~~~
| )