QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#792311 | #142. 平面最近点对 | LYH_cpp | Compile Error | / | / | C++23 | 1.3kb | 2024-11-29 08:58:17 | 2024-11-29 08:58:19 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int main()’: answer.code:41:61: warning: narrowing conversion of ‘__builtin_ceil(((double)p[i].P::y - __builtin_sqrt((double)ans)))’ from ‘double’ to ‘int’ [-Wnarrowing] 41 | for(auto it=st.lower_bound({0,__builtin_ceil(p[i].y-__builtin_sqrt(ans))});it!=st.end()&&pow2(p[i].y-it->y)<=ans;it++)ans=mi(ans,dis(*it,p[i])); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code: In instantiation of ‘void w(T) [with T = double]’: answer.code:44:3: required from here answer.code:27:25: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’ 27 | *++top=x%10; | ~^~~