Problem | assistance |
---|---|
User | spambot696969 |
Submission Time | 2024-08-01 15:39:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
assistance.cpp: In lambda function:
assistance.cpp:9:27: error: expected ‘{’ before ‘;’ token
9 | int arr = [a, b, c, d, e];
| ^
assistance.cpp: In function ‘int main()’:
assistance.cpp:9:27: error: cannot convert ‘main()::<lambda()>’ to ‘long long int’ in initialization
assistance.cpp:12:22: error: ‘n’ was not declared in this scope
12 | for (int i = 0; i < n; i++){
| ^
assistance.cpp:14:20: error: invalid types ‘long long int[long long int]’ for array subscript
14 | else sum += arr[i];
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from assistance.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long