QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#556480 | #7758. Painter | MaMengQi | Compile Error | / | / | C++23 | 1.7kb | 2024-09-10 18:48:27 | 2024-09-10 18:48:28 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:20:30: error: ‘long long int y1 [2005]’ redeclared as different kind of entity 20 | int x1[2005],x2[2005],y1[2005],y2[2005],r[2005]; | ^ In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679, from /usr/include/c++/13/cassert:43, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:33, from answer.code:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration ‘double y1(double)’ 221 | __MATHCALL (y1,, (_Mdouble_)); | ^~~~~~~~~~ answer.code: In function ‘void solve()’: answer.code:26:43: warning: pointer to a function used in arithmetic [-Wpointer-arith] 26 | if(s[i]=="Circle")cin>>x1[i]>>y1[i]>>r[i]>>col[i]; | ^ answer.code:26:37: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘double(double) noexcept’) 26 | if(s[i]=="Circle")cin>>x1[i]>>y1[i]>>r[i]>>col[i]; | ~~~~~~~~~~^~~~~~~ | | | | | double(double) noexcept | std::basic_istream<char>::__istream_type {aka std::basic_istream<char>} In file included from /usr/include/c++/13/sstream:40, from /usr/include/c++/13/complex:45, from /usr/include/c++/13/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127: /usr/include/c++/13/istream:325:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match) 325 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/13/istream:325:7: note: conversion of argument 1 would be ill-formed: answer.code:26:43: error: invalid conversion from ‘double (*)(double) noexcept’ to ‘void*’ [-fpermissive] 26 | if(s[i]=="Circle")cin>>x1[i]>>y1[i]>>r[i]>>col[i]; | ~~~~^ | | | double (*)(double) noexcept answer.code:26:43: error: cannot bind rvalue ‘(void*)(y1 + ((sizetype)i))’ to ‘void*&’ /usr/include/c++/13/istream:201:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match) 201 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/13/istream:201:7: note: conversion of argument 1 would be ill-formed: answer.code:26:43: error: invalid conversion from ‘double (*)(double) noexcept’ to ‘long long unsigned int’ [-fpermissive] 26 | if(s[i]=="Circle")cin>>x1[i]>>y1[i]>>r[i]>>col[i]; | ~~~~^ | | | double (*)(double) noexcept answer.code:26:43: error: cannot bind rvalue ‘(long long unsigned int)(y1 + ((sizetype)i))’ to ‘long long unsigned int&’ /usr/include/c++/13/istream:197:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match) 197 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/13/istream:197:7: note: conversion of argument 1 would be ill-formed: answer.code:26:43: error: invalid conversion from ‘double (*)(double) noexcept’ to ‘long long int’ [-fpermissive] 26 | if(s[i]=="Circle")cin>>x1[i]>>y1[i]>>r[i]>>col[i]; | ~~~~^ | | | double (*)(double) noexcept answer.code:26:43: error: cannot bind rvalue ‘(long long int)(y1 + ((sizetype)i))’ to ‘long long int&’ /usr/include/c++/13/istream:192:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match) 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/13/istream:192:7: note: conversion of argument 1 would be ill-formed: answer.code:26:43: error: invalid conversion from ‘double (*)(double) noexcept’ to ‘long unsigned ...