Problem | prefixsums |
---|---|
User | hackerman123 |
Submission Time | 2023-07-24 21:18:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:7:28: error: ‘arr’ was not declared in this scope
7 | long long numbers[A + 1]; arr[0] = 0;
| ^~~
prefixsums.cpp:9:20: error: conflicting declaration ‘std::vector<long long int> prefixsum’
9 | vector<long long> prefixsum; prefixsum.resize(A + 1,0);
| ^~~~~~~~~
prefixsums.cpp:8:12: note: previous declaration as ‘long long int prefixsum [(A + 1)]’
8 | long long prefixsum[A + 1]; prefixsum[0] = 0;
| ^~~~~~~~~
prefixsums.cpp:9:41: error: request for member ‘resize’ in ‘prefixsum’, which is of non-class type ‘long long int [(A + 1)]’
9 | vector<long long> prefixsum; prefixsum.resize(A + 1,0);
| ^~~~~~