Problem | psle |
---|---|
User | dakingwawin |
Submission Time | 2024-01-29 09:36:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
psle.cpp:11:5: error: cannot declare ‘::main’ to be a global variable
11 | int main{
| ^~~~
psle.cpp:14:2: error: expected primary-expression before ‘int’
14 | int n = 0;
| ^~~
psle.cpp:14:2: error: expected ‘}’ before ‘int’
psle.cpp:11:9: note: to match this ‘{’
11 | int main{
| ^
psle.cpp:15:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
15 | cin>>n;
| ^~~
| sin
psle.cpp:16:2: error: expected unqualified-id before ‘if’
16 | if(n>=91){
| ^~
psle.cpp:18:3: error: expected unqualified-id before ‘else’
18 | }else if(n>=75){
| ^~~~
psle.cpp:20:3: error: expected unqualified-id before ‘else’
20 | }else if( n>=60){
| ^~~~
psle.cpp:22:3: error: expected unqualified-id before ‘else’
22 | }else if(n>=50){
| ^~~~
psle.cpp:24:3: error: expected unqualified-id before ‘else’
24 | }