QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#313757 | #7730. Convex Checker | ZhaoZiLong | Compile Error | / | / | C++20 | 1.1kb | 2024-01-24 23:05:17 | 2024-01-24 23:05:18 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~