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

Compile Error

squarerect.cpp: In function ‘bool sor(std::pair<int, int>)’:
squarerect.cpp:33:34: error: assignment of function ‘std::ios_base& std::left(std::ios_base&)’
33 | if (check(p.fi, mid))high=left=mid;
| ~~~~^~~~
squarerect.cpp:36:16: error: ‘n’ was not declared in this scope
36 | if (left+l-1>n)return 0;
| ^
squarerect.cpp:37:17: error: ‘n’ was not declared in this scope
37 | if (left+l-1==n)return check(p.fi, left+l-1);
| ^
squarerect.cpp:37:44: error: invalid conversion from ‘std::ios_base& (*)(std::ios_base&)’ to ‘int’ [-fpermissive]
37 | if (left+l-1==n)return check(p.fi, left+l-1);
| ~~~~~~^~
| |
| std::ios_base& (*)(std::ios_base&)
squarerect.cpp:13:23: note: initializing argument 2 of ‘bool c