Problem | gcd |
---|---|
User | boaznumberd5555 |
Submission Time | 2023-03-03 14:34:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘int32_t gcd(long long int, long long int)’:
gcd.cpp:8:46: error: expected ‘;’ before ‘}’ token
8 | output = min(output, max(a*i,b)-min(a*i,b))
| ^
| ;
9 | }
| ~
At global scope:
cc1plus: error: ‘::main’ must return ‘int’
gcd.cpp: In function ‘int main()’:
gcd.cpp:16:32: error: expected ‘;’ before ‘}’ token
16 | cout << gcd(max(a,b),min(a,b))
| ^
| ;
17 | }
| ~