Problem | prefixsums |
---|---|
User | Kiameimon |
Submission Time | 2023-09-17 01:07:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:13:15: error: no match for ‘operator<’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘char’)
13 | cout << sum < '\n';
| ~~~~~~~~~~~ ^ ~~~~
| | |
| | char
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
prefixsums.cpp:13:15: note: candidate: ‘operator<(int, int)’ <built-in>
13 | cout << sum < '\n';
| ~~~~~~~~~~~~^~~~~~
prefixsums.cpp:13:15: note: no known conversion for argument 1 from ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from prefixsums.cpp:1:
/usr/include/c++/9/bits/regex.h:10