QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#313757#7730. Convex CheckerZhaoZiLongCompile Error//C++201.1kb2024-01-24 23:05:172024-01-24 23:05:18

詳細信息

answer.code: In function ‘bool check(point, point, point)’:
answer.code:15:10: error: ‘p2’ was not declared in this scope; did you mean ‘l2’?
   15 |     l1.x=p2.x-p1.x;
      |          ^~
      |          l2
answer.code:15:15: error: ‘p1’ was not declared in this scope; did you mean ‘l1’?
   15 |     l1.x=p2.x-p1.x;
      |               ^~
      |               l1
answer.code:17:10: error: ‘p3’ was not declared in this scope; did you mean ‘p’?
   17 |     l2.x=p3.x-p2.x;
      |          ^~
      |          p
answer.code: In function ‘void tb()’:
answer.code:28:19: error: cannot convert ‘point’ to ‘int’ in assignment
   28 |         p1=v[cnt-1];
      |            ~~~~~~~^
      |                   |
      |                   point
answer.code:29:17: error: cannot convert ‘point’ to ‘int’ in assignment
   29 |         p2=v[cnt];
      |            ~~~~~^
      |                 |
      |                 point
answer.code:30:22: error: could not convert ‘p1’ from ‘int’ to ‘point’
   30 |         while(!check(p1,p2,p[i]) && cnt>1){
      |                      ^~
      |                      |
      |                      int
answer.code:32:23: error: cannot convert ‘point’ to ‘int’ in assignment
   32 |             p1=v[cnt-1];
      |                ~~~~~~~^
      |                       |
      |                       point
answer.code:33:21: error: cannot convert ‘point’ to ‘int’ in assignment
   33 |             p2=v[cnt];
      |                ~~~~~^
      |                     |
      |                     point
answer.code:40:19: error: cannot convert ‘point’ to ‘int’ in assignment
   40 |         p1=v[cnt-1];
      |            ~~~~~~~^
      |                   |
      |                   point
answer.code:41:17: error: cannot convert ‘point’ to ‘int’ in assignment
   41 |         p2=v[cnt];
      |            ~~~~~^
      |                 |
      |                 point
answer.code:42:22: error: could not convert ‘p1’ from ‘int’ to ‘point’
   42 |         while(!check(p1,p2,p[i]) && cnt>temp){
      |                      ^~
      |                      |
      |                      int
answer.code:44:23: error: cannot convert ‘point’ to ‘int’ in assignment
   44 |             p1=v[cnt-1];
      |                ~~~~~~~^
      |                       |
      |                       point
answer.code:45:21: error: cannot convert ‘point’ to ‘int’ in assignment
   45 |             p2=v[cnt];
      |                ~~~~~^
      |                     |
      |                     point
answer.code: In function ‘int main()’:
answer.code:53:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   53 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
answer.code:56:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   56 |         scanf("%d %d",&p[i].x,&p[i].y);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~