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

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:6:14: error: expression list treated as compound expression in initializer [-fpermissive]
6 | int gcd(a, b) {
| ^
gcd.cpp:6:16: error: expected ‘,’ or ‘;’ before ‘{’ token
6 | int gcd(a, b) {
| ^
gcd.cpp:15:26: error: ‘gcd’ cannot be used as a function
15 | int result = gcd(a, b);
| ^