Problem sumint
User dumgod
Submission Time 2023-03-11 19:18:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:10:6: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘void’)
10 | cin>>
| ~~~^~
| |
| std::istream {aka std::basic_istream<char>}
11 | ky5.push_back(b);
| ~~~~~~~~~~~~~~~~
| |
| void
In file included from /usr/include/c++/9/iostream:40,
from sumint.cpp:1:
/usr/include/c++/9/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’
120 | operator>