Problem gcd
User sac
Submission Time 2023-04-21 16:59:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp:6:9: error: ‘a’ was not declared in this scope
6 | int gcd(a, b) {
| ^
gcd.cpp:6:12: error: ‘b’ was not declared in this scope
6 | int gcd(a, b) {
| ^
gcd.cpp:6:13: error: expression list treated as compound expression in initializer [-fpermissive]
6 | int gcd(a, b) {
| ^
gcd.cpp: In function ‘int main()’:
gcd.cpp:15:18: error: ‘gcd’ cannot be used as a function
15 | cout << gcd(a, b);
| ^