Problem | gcd |
---|---|
User | 2Princes1Lance |
Submission Time | 2023-11-23 15:45:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘int main()’:
gcd.cpp:35:3: error: ‘else’ without a previous ‘if’
35 | else if (a%prime == 0 && b%prime == 0){
| ^~~~
gcd.cpp: At global scope:
gcd.cpp:44:2: error: ‘cout’ does not name a type
44 | cout << GCD;
| ^~~~
gcd.cpp:45:2: error: expected unqualified-id before ‘return’
45 | return 0;
| ^~~~~~
gcd.cpp:46:1: error: expected declaration before ‘}’ token
46 | }
| ^