Problem | area_noi |
---|---|
User | Isaiah |
Submission Time | 2024-01-23 14:41:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area_noi.cpp: In lambda function:
area_noi.cpp:4:20: error: expected ‘{’ before ‘;’ token
4 | int numbers[] = [];
| ^
area_noi.cpp: In function ‘int main()’:
area_noi.cpp:4:6: error: initializer fails to determine size of ‘numbers’
4 | int numbers[] = [];
| ^~~~~~~
area_noi.cpp:4:20: error: array must be initialized with a brace-enclosed initializer
4 | int numbers[] = [];
| ^
area_noi.cpp:7:6: error: ‘i’ was not declared in this scope
7 | for(i = 0, i < x, i++){
| ^
area_noi.cpp:16:19: error: no matching function for call to ‘max(int [1])’
16 | cout<<max(numbers);
| ^
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,