Problem summarising2023
User f0restf1re
Submission Time 2024-01-05 18:33:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

summarising2023.cpp: In function ‘int main()’:
summarising2023.cpp:5:5: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::stringstream’ {aka ‘std::__cxx11::basic_stringstream<char>’})
5 | cin>>s;
| ~~~^~~
| | |
| | std::stringstream {aka std::__cxx11::basic_stringstream<char>}
| std::istream {aka std::basic_istream<char>}
summarising2023.cpp:5:5: note: candidate: ‘operator>>(int, int)’ <built-in>
5 | cin>>s;
| ~~~^~~
summarising2023.cpp:5:5: note: no known conversion for argument 2 from ‘std::stringstream’ {aka ‘std::__cxx11::basic_stringstream<char>’} to ‘int’
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9