Problem | flamethrower |
---|---|
User | Leeyee |
Submission Time | 2025-08-18 17:55:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:8:2: error: expected ‘,’ or ‘;’ before ‘for’
8 | for (int i = 0; i<=n; i++) { //i++ just the same as i+=1
| ^~~
flamethrower.cpp:8:18: error: ‘i’ was not declared in this scope
8 | for (int i = 0; i<=n; i++) { //i++ just the same as i+=1
| ^
flamethrower.cpp: In lambda function:
flamethrower.cpp:14:2: error: expected ‘{’ before ‘}’ token
14 | }
| ^
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:13:22: error: no match for ‘operator+’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} and ‘main()::<lambda()>’)
13 | sum1 = v[min]+[]
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath