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

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:7:14: error: expression list treated as compound expression in initializer [-fpermissive]
7 | int gcd(a,b)=(a,a mod b);
| ^
gcd.cpp:7:15: error: expected ‘,’ or ‘;’ before ‘=’ token
7 | int gcd(a,b)=(a,a mod b);
| ^
gcd.cpp:10:14: error: expression list treated as compound expression in initializer [-fpermissive]
10 | int gcd(b,a)=(b,b mod a);
| ^
gcd.cpp:10:15: error: expected ‘,’ or ‘;’ before ‘=’ token
10 | int gcd(b,a)=(b,b mod a);
| ^