Problem | flamethrower |
---|---|
User | shawn |
Submission Time | 2024-04-06 11:42:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:20:17: error: expected ‘,’ before ‘-’ token
20 | c += a[i] - [i - k];
| ^~
| ,
flamethrower.cpp:20:18: error: expected identifier before ‘-’ token
20 | c += a[i] - [i - k];
| ^
flamethrower.cpp: In lambda function:
flamethrower.cpp:20:22: error: expected ‘{’ before ‘;’ token
20 | c += a[i] - [i - k];
| ^
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:20:13: error: no match for ‘operator-’ (operand types are ‘long long int’ and ‘main()::<lambda()>’)
20 | c += a[i] - [i - k];
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
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++