Problem gcd
User Ignatius
Submission Time 2025-02-19 16:22:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp:5:12: error: ‘a’ was not declared in this scope
5 | int hello( a,b);
| ^
gcd.cpp:5:14: error: ‘b’ was not declared in this scope
5 | int hello( a,b);
| ^
gcd.cpp:5:15: error: expression list treated as compound expression in initializer [-fpermissive]
5 | int hello( a,b);
| ^
gcd.cpp: In function ‘int main()’:
gcd.cpp:8:5: 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:12:19: error: ‘a’ was not declared in this scope
12 | return hello (b,a%b)
| ^
gcd.cpp:12:22: error: ‘hello’ cannot be used as a function
12 | return hello (b,a%b)
| ^
gcd.cpp:12:23: error: expected ‘;’ before ‘}’ token
12 | return hello (b,a%b)
| ^