Problem | gcd |
---|---|
User | 2Princes1Lance |
Submission Time | 2023-11-23 10:07:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘int main()’:
gcd.cpp:10:8: error: invalid operands of types ‘float’ and ‘float’ to binary ‘operator%’
10 | if (a%prime == 1 && b%prime == 1){
| ~^~~~~~
| | |
| | float
| float
gcd.cpp:10:24: error: invalid operands of types ‘float’ and ‘float’ to binary ‘operator%’
10 | if (a%prime == 1 && b%prime == 1){
| ~^~~~~~
| | |
| | float
| float
gcd.cpp:14:3: error: expected ‘}’ before ‘else’
14 | else{
| ^~~~
gcd.cpp:10:36: note: to match this ‘{’
10 | if (a%prime == 1 && b%prime == 1){
| ^
gcd.cpp: At global scope:
gcd.cpp:20:2: error: ‘cout’ does not name a type
20 | cout << GCD
| ^~~~
gcd.cpp:21:1: error: expected declaration before ‘}’ token
21 | }