| Problem | area2 |
|---|---|
| User | hitarthdangra |
| Submission Time | 2026-03-13 10:35:39 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
area2.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main{
| ^~~~
area2.cpp:6:2: error: expected primary-expression before ‘int’
6 | int n;
| ^~~
area2.cpp:6:2: error: expected ‘}’ before ‘int’
area2.cpp:4:9: note: to match this ‘{’
4 | int main{
| ^
area2.cpp:7:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
7 | cin >> n;
| ^~~
| sin
area2.cpp:9:17: error: ‘n’ was not declared in this scope
9 | vector <int> a(n), b(n);
| ^
area2.cpp:9:23: error: ‘n’ was not declared in this scope
9 | vector <int> a(n), b(n);
| ^
area2.cpp:10:2: error: ‘max_value’ does not name a type; did you mean ‘si_value’?
10 | max_value = 0
| ^~~~~~~~~
| si_value
area2.cpp:12:18: error: ‘i’ does not name a type
12 | for (int i = 0; i < n; i++)