Problem gcd
User blob
Submission Time 2023-11-15 10:20:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:4:24: error: a function-definition is not allowed here before ‘{’ token
4 | int gcd(int a, int b) {
| ^
gcd.cpp:13:5: error: expected initializer before ‘int’
13 | int a, b;
| ^~~
gcd.cpp:14:10: error: ‘a’ was not declared in this scope
14 | cin >> a >> b;
| ^
gcd.cpp:14:15: error: ‘b’ was not declared in this scope
14 | cin >> a >> b;
| ^