Problem | ippt |
---|---|
User | Kartikkk |
Submission Time | 2024-02-18 16:59:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ippt.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main {
| ^~~~
ippt.cpp:5:2: error: expected primary-expression before ‘int’
5 | int a, b, c, sum;
| ^~~
ippt.cpp:5:2: error: expected ‘}’ before ‘int’
ippt.cpp:4:10: note: to match this ‘{’
4 | int main {
| ^
ippt.cpp:6:2: error: ‘sum’ does not name a type
6 | sum = a+b+c;
| ^~~
ippt.cpp:7:2: error: ‘cin’ does not name a type
7 | cin >> a >> b >> c;
| ^~~
ippt.cpp:8:2: error: ‘cout’ does not name a type
8 | cout << sum;
| ^~~~
ippt.cpp:9:2: error: expected unqualified-id before ‘if’
9 | if (a=0){
| ^~
ippt.cpp:12:2: error: expected unqualified-id before ‘else’
12 | else if (b=0){
| ^~~~
ippt.cpp:15:2: error: expected unqualified-id before ‘else’
15 | else if (c=0){
| ^~~~
ippt.cpp:18:2: erro