Problem gcd
User blob
Submission Time 2023-11-15 10:19:14
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:12:13: error: a function-definition is not allowed here before ‘{’ token
12 | int main() {
| ^
gcd.cpp:18:2: error: expected ‘}’ at end of input
18 | }
| ^
gcd.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^