QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#556044 | #2458. Follow the Bouncing Ball | Nemesis (Zonghan Yang, Mingchi Zhang, Jianjun Zhang) | Compile Error | / | / | C++20 | 7.2kb | 2024-09-10 14:31:08 | 2024-09-10 14:31:08 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:92:10: warning: narrowing conversion of ‘w’ from ‘int’ to ‘LD’ {aka ‘long double’} [-Wnarrowing] 92 | {w, 0}, | ^ answer.code:93:10: warning: narrowing conversion of ‘w’ from ‘int’ to ‘LD’ {aka ‘long double’} [-Wnarrowing] 93 | {w, h}, | ^ answer.code:93:13: warning: narrowing conversion of ‘h’ from ‘int’ to ‘LD’ {aka ‘long double’} [-Wnarrowing] 93 | {w, h}, | ^ answer.code:94:13: warning: narrowing conversion of ‘h’ from ‘int’ to ‘LD’ {aka ‘long double’} [-Wnarrowing] 94 | {0, h}}, int(1e9) | ^ answer.code:166:90: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<point>, point>::value_type’ {aka ‘point’}) 166 | cerr << cur.x << " " << cur.y << " on " << poly[to].first[toid].x << " " << poly[to].first[toid] << ",, " << poly[to].first[(toid + 1) % poly[to].first.size()].x << " " << poly[to].first[(toid + 1) % poly[to].first.size()].y << endl; In file included from /usr/include/c++/13/bits/unique_ptr.h:42, from /usr/include/c++/13/memory:78, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:56, from answer.code:1: /usr/include/c++/13/ostream:110:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 110 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/13/ostream:110:36: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<point>, point>::value_type’ {aka ‘point’} to ‘std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)’ {aka ‘std::basic_ostream<char>& (*)(std::basic_ostream<char>&)’} 110 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/ostream:119:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]’ 119 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/13/ostream:119:32: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<point>, point>::value_type’ {aka ‘point’} to ‘std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)’ {aka ‘std::basic_ios<char>& (*)(std::basic_ios<char>&)’} 119 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/13/ostream:129:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 129 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/13/ostream:129:30: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<point>, point>::value_type’ {aka ‘point’} to ‘std::ios_base& (*)(std::ios_base&)’ 129 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/13/ostream:168:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 168 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/13/ostream:168:23: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<point>, point>::value_type’ {aka ‘point’} to ‘long int’ 168 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/13/ostream:172:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 172 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/13/ostream:172:32: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<point>, point>::value_type’ {aka ‘point’} to ‘long unsigned int’ 172 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/13/ostream:176:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basi...