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

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:7:7: error: expected primary-expression before ‘int’
7 | gcd(int c=a mod b);
| ^~~
gcd.cpp:8:12: error: ‘c’ was not declared in this scope
8 | cout << c;
| ^
gcd.cpp:10:7: error: expected primary-expression before ‘int’
10 | gcd(int c=b mod a);
| ^~~
gcd.cpp:11:12: error: ‘c’ was not declared in this scope
11 | cout << c;
| ^