Problem | queuecutting |
---|---|
User | noobatcp |
Submission Time | 2024-06-21 15:41:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
queuecutting.cpp: In function ‘int32_t main()’:
queuecutting.cpp:45:9: error: no match for ‘operator=’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
45 | a=q[0];
| ^
In file included from /usr/include/c++/9/iostream:40,
from queuecutting.cpp:4:
/usr/include/c++/9/istream:625:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]’
625 | operator=(basic_istream&& __rhs)
| ^~~~~~~~
/usr/include/c++/9/istream:625:33: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’