| Problem | area2 |
|---|---|
| User | AndyChen |
| Submission Time | 2026-02-23 16:31:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
area2.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
area2.cpp:4:2: error: expected primary-expression before ‘int’
4 | int n,max=0,c,max2=0;
| ^~~
area2.cpp:4:2: error: expected ‘}’ before ‘int’
area2.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
area2.cpp:5:2: error: ‘cin’ does not name a type
5 | cin>>n;
| ^~~
area2.cpp:6:8: error: ‘n’ was not declared in this scope
6 | int b[n];
| ^
area2.cpp:7:2: error: expected unqualified-id before ‘for’
7 | for (int i=0;i<n;i++){
| ^~~
area2.cpp:7:15: error: ‘i’ does not name a type
7 | for (int i=0;i<n;i++){
| ^
area2.cpp:7:19: error: ‘i’ does not name a type
7 | for (int i=0;i<n;i++){
| ^
area2.cpp:9:2: error: expected unqualified-id before ‘for’
9 | for (int i=0;i&l