Problem gcd
User ShaquilleOatmeal34
Submission Time 2025-02-19 16:23:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:6:12: error: ‘a’ was not declared in this scope
6 | int hello(a,b) {
| ^
gcd.cpp:6:14: error: ‘b’ was not declared in this scope
6 | int hello(a,b) {
| ^
gcd.cpp:6:15: error: expression list treated as compound expression in initializer [-fpermissive]
6 | int hello(a,b) {
| ^
gcd.cpp:12:2: error: ‘else’ without a previous ‘if’
12 | else {
| ^~~~
gcd.cpp:13:15: error: expected ‘;’ at end of input
13 | return hello
| ~~~~~^
| ;
gcd.cpp:13:10: error: expected ‘}’ at end of input
13 | return hello
| ^~~~~
gcd.cpp:12:7: note: to match this ‘{’
12 | else {
| ^
gcd.cpp:13:10: error: expected ‘}’ at end of input
13 | return hello
| ^~~~~
gcd.cpp:5:15: note: to match this ‘{’
5 | signed main()