Problem | area_noi |
---|---|
User | BAF123123 |
Submission Time | 2024-02-15 22:39:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area_noi.cpp:6:5: error: cannot declare ‘::main’ to be a global variable
6 | int main {
| ^~~~
area_noi.cpp:8:2: error: expected primary-expression before ‘int’
8 | int n;
| ^~~
area_noi.cpp:8:2: error: expected ‘}’ before ‘int’
area_noi.cpp:6:10: note: to match this ‘{’
6 | int main {
| ^
area_noi.cpp:13:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
13 | cin >> n;
| ^~~
| sin
area_noi.cpp:15:2: error: expected unqualified-id before ‘while’
15 | while (i < n) {
| ^~~~~
area_noi.cpp:21:2: error: expected unqualified-id before ‘if’
21 | if ( i == n) {
| ^~
area_noi.cpp:27:1: error: expected declaration before ‘}’ token
27 | }
| ^