Problem | area |
---|---|
User | om2024 |
Submission Time | 2024-06-19 10:46:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area.cpp: In function ‘int main()’:
area.cpp:13:16: error: ‘x’ was not declared in this scope
13 | int z; cin >> x;
| ^
area.cpp:15:19: error: request for member ‘first’ in ‘arr’, which is of non-class type ‘int [n]’
15 | int z = z + arr.first() * arr.second()
| ^~~~~
area.cpp:15:33: error: request for member ‘second’ in ‘arr’, which is of non-class type ‘int [n]’
15 | int z = z + arr.first() * arr.second()
| ^~~~~~