Problem ippt
User Adflhjk
Submission Time 2023-12-02 14:33:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ippt.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main {
| ^~~~
ippt.cpp:4:2: error: expected primary-expression before ‘int’
4 | int a;
| ^~~
ippt.cpp:4:2: error: expected ‘}’ before ‘int’
ippt.cpp:3:10: note: to match this ‘{’
3 | int main {
| ^
ippt.cpp:7:2: error: ‘cin’ does not name a type
7 | cin >> a >> b >> c;
| ^~~
ippt.cpp:8:2: error: expected unqualified-id before ‘if’
8 | if (a+b+c <=60) {
| ^~
ippt.cpp:11:2: error: expected unqualified-id before ‘else’
11 | else if (61<= a + b + c <= 74) {
| ^~~~
ippt.cpp:14:2: error: expected unqualified-id before ‘else’
14 | else if (75<= a+b+c<=84) {
| ^~~~
ippt.cpp:17:2: error: expected unqualified-id before ‘else’
17 | else if (85<=a+b+c) {
| ^~~~
ippt.cpp:20:2: error: expected unqualified-id before