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

Compile Error

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