Problem area2
User hitarthdangra
Submission Time 2026-03-13 10:35:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area2.cpp:6:7: error: expected ‘)’ before ‘;’ token
6 | int n;
| ^
| )
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++) {
| ^
area2.cpp:12:25: error: ‘i’ does not name a type
12 | for (int i = 0; i < n; i++) {
|