Problem | gcd |
---|---|
User | BoneMeBurner |
Submission Time | 2023-03-06 17:52:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp:1:9: error: ‘a’ was not declared in this scope
1 | int gcd(a, b){
| ^
gcd.cpp:1:12: error: ‘b’ was not declared in this scope
1 | int gcd(a, b){
| ^
gcd.cpp:1:13: error: expression list treated as compound expression in initializer [-fpermissive]
1 | int gcd(a, b){
| ^
gcd.cpp:6:5: error: cannot declare ‘::main’ to be a global variable
6 | int main{
| ^~~~
gcd.cpp:7:2: error: expected primary-expression before ‘int’
7 | int a,b;
| ^~~
gcd.cpp:7:2: error: expected ‘}’ before ‘int’
gcd.cpp:6:9: note: to match this ‘{’
6 | int main{
| ^
gcd.cpp:8:2: error: ‘cin’ does not name a type
8 | cin >> a >> b;
| ^~~
gcd.cpp:9:2: error: ‘cout’ does not name a type
9 | cout << (gcd(a, b));
| ^~~~
gcd.cpp:10:2: error: expected declaration before ‘}’ token
10 | }