QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#313882#784. 旋转卡壳HuangHanShengCompile Error//C++174.1kb2024-01-25 08:56:542024-01-25 08:56:56

详细

answer.code: In member function ‘pt pt::operator+=(const pt&)’:
answer.code:43:5: warning: no return statement in function returning non-void [-Wreturn-type]
   43 |     }
      |     ^
answer.code: In member function ‘pt pt::operator-=(const pt&)’:
answer.code:47:5: warning: no return statement in function returning non-void [-Wreturn-type]
   47 |     }
      |     ^
answer.code: In function ‘std::vector<pt> minkovski(std::vector<pt>&, std::vector<pt>&)’:
answer.code:130:62: error: expected primary-expression before ‘?’ token
  130 |         if(sgn(cross(h1[p1+1]-h1[p1], h2[p2+1]-h2[p2])) >= 0)?
      |                                                              ^
answer.code:132:5: error: expected primary-expression before ‘}’ token
  132 |     }while(p1 or p2);
      |     ^
answer.code:130:63: error: expected ‘:’ before ‘}’ token
  130 |         if(sgn(cross(h1[p1+1]-h1[p1], h2[p2+1]-h2[p2])) >= 0)?
      |                                                               ^
      |                                                               :
  131 | //        res.emplace_back(cur);
  132 |     }while(p1 or p2);
      |     ~                                                          
answer.code:132:5: error: expected primary-expression before ‘}’ token
  132 |     }while(p1 or p2);
      |     ^