Problem squarerect
User PlayVoltz
Submission Time 2024-09-09 09:39:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squarerect.cpp: In function ‘bool sor(std::pair<int, int>)’:
squarerect.cpp:34:34: error: assignment of function ‘std::ios_base& std::left(std::ios_base&)’
34 | if (check(p.fi, mid))high=left=mid;
| ~~~~^~~~
squarerect.cpp:37:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
37 | if (left+l-1>n)return 0;
| ^
squarerect.cpp:38:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
38 | if (left+l-1==n)return check(p.fi, left+l-1);
| ^
squarerect.cpp:38:44: error: invalid conversion from ‘std::ios_base& (*)(std::ios_base&)’ to ‘int’ [-fpermissive]
38 | if (left+l-1==n)return check(p.fi, left+l-1);
| ~~~~~~^~
| |
| std::ios_base& (*)(std::ios_base