Problem gcd
User vadar2525
Submission Time 2025-02-19 16:23:10
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:6:3: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin a >> b;
| ^~~
| sin
gcd.cpp: In function ‘int main()’:
gcd.cpp:9:6: error: ‘b’ was not declared in this scope
9 | if (b == 0){
| ^
gcd.cpp:10:10: error: ‘a’ was not declared in this scope
10 | return a;}
| ^
gcd.cpp:12:22: error: ‘a’ was not declared in this scope
12 | return jyothir( b, a % b);}
| ^
gcd.cpp:12:27: error: ‘jyothir’ cannot be used as a function
12 | return jyothir( b,