Problem | prefixsums |
---|---|
User | Ush |
Submission Time | 2024-12-09 14:46:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:13:27: error: expression list treated as compound expression in initializer [-fpermissive]
13 | int prefixSum(N + 1, 0);
| ^
prefixsums.cpp:17:19: error: invalid types ‘long long int[long long int]’ for array subscript
17 | cin >> A[i];
| ^
prefixsums.cpp:18:20: error: invalid types ‘long long int[long long int]’ for array subscript
18 | prefixSum[i] = prefixSum[i - 1] + A[i];
| ^
prefixsums.cpp:18:39: error: invalid types ‘long long int[long long int]’ for array subscript
18 | prefixSum[i] = prefixSum[i - 1] + A[i];
| ^
prefixsums.cpp:18:46: error: invalid types ‘long long int[long long int]’ for array subscript
18 | prefixSum[i] = prefixSum[i - 1] + A[i];
|