Problem | area |
---|---|
User | om2024 |
Submission Time | 2024-06-19 10:45:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area.cpp: In function ‘int main()’:
area.cpp:6:2: error: ‘arr’ was not declared in this scope
6 | arr[n];
| ^~~
area.cpp:9:20: error: expected ‘;’ before ‘<’ token
9 | for (int x = 0, x < n; n++) {
| ^~
| ;
area.cpp:9:21: error: expected primary-expression before ‘<’ token
9 | for (int x = 0, x < n; n++) {
| ^
area.cpp:13:16: error: ‘x’ was not declared in this scope
13 | int z; cin >> x;
| ^
area.cpp:14:19: error: expected ‘;’ before ‘<’ token
14 | for (int y = 0, y < n; y++) {
| ^~
| ;
area.cpp:14:20: error: expected primary-expression before ‘<’ token
14 | for (int y = 0, y < n; y++) {
| ^
area.cpp:15:19: error: ‘i’ was not declared in this scope
15 | int z = z + arr[i] * arr[x]