Problem gcd
User vadar2525
Submission Time 2025-02-19 16:21:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp:5:14: error: ‘a’ was not declared in this scope
5 | int jyothir (a,b);
| ^
gcd.cpp:5:16: error: ‘b’ was not declared in this scope
5 | int jyothir (a,b);
| ^
gcd.cpp:5:17: error: expression list treated as compound expression in initializer [-fpermissive]
5 | int jyothir (a,b);
| ^
gcd.cpp: In function ‘int main()’:
gcd.cpp:8:6: error: ‘b’ was not declared in this scope
8 | if (b == 0)
| ^
gcd.cpp:9:10: error: ‘a’ was not declared in this scope
9 | return a;
| ^
gcd.cpp:11:22: error: ‘a’ was not declared in this scope
11 | return jyothir( b, a % b);
| ^
gcd.cpp:11:27: error: ‘jyothir’ cannot be used as a function
11 | return jyothir( b, a % b);
| ^