QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#598384#9434. Italian Cuisineucup-team244#Compile Error//C++171.5kb2024-09-28 21:35:082024-09-28 21:35:08

Details

answer.code: In function ‘void solve()’:
answer.code:52:18: error: no matching function for call to ‘dis(std::pair<int, int>&, std::pair<int, int>&, std::pair<int, int>)’
   52 |         while(dis(p[i],p[rr+1],mp(x,y))&&cross(p[rr+1],mp(x,y),p[i])>0){
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~
answer.code:24:13: note: candidate: ‘long double dis(std::pair<long long int, long long int>, std::pair<long long int, long long int>)’
   24 | long double dis(pll p,pll q){
      |             ^~~
answer.code:24:13: note:   candidate expects 2 arguments, 3 provided
answer.code:27:6: note: candidate: ‘bool dis(std::pair<long long int, long long int>, std::pair<long long int, long long int>, std::pair<long long int, long long int>, long long int)’
   27 | bool dis(pll p,pll q,pll o, LL r){
      |      ^~~
answer.code:27:6: note:   candidate expects 4 arguments, 3 provided
answer.code:39:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   39 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
answer.code:41:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   41 |     scanf("%d %d %d",&x,&y,&r);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~
answer.code:44:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   44 |         scanf("%d %d",&x,&y);
      |         ~~~~~^~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:65:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   65 |     scanf("%d",&t);
      |     ~~~~~^~~~~~~~~