Problem | gcd |
---|---|
User | blob |
Submission Time | 2023-11-15 10:00:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘int main()’:
gcd.cpp:7:17: error: expected ‘)’ before ‘}’ token
7 | if (gcd = (a,0)}{
| ~ ^
| )
gcd.cpp:7:17: error: expected primary-expression before ‘}’ token
gcd.cpp: At global scope:
gcd.cpp:7:18: error: expected unqualified-id before ‘{’ token
7 | if (gcd = (a,0)}{
| ^
gcd.cpp:10:2: error: expected unqualified-id before ‘else’
10 | else if (gcd = (0,b){
| ^~~~
gcd.cpp:13:2: error: expected unqualified-id before ‘else’
13 | else if (gcd = (a,b) and a<b){
| ^~~~
gcd.cpp:17:2: error: expected unqualified-id before ‘else’
17 | else if (gcd = (a,b) and b>a){
| ^~~~
gcd.cpp:21:5: error: expected declaration before ‘}’ token
21 | }
| ^