QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#751677 | #9574. Strips | ucup-team2454# | Compile Error | / | / | C++20 | 746b | 2024-11-15 20:06:34 | 2024-11-15 20:06:36 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:4:1: error: ‘P’ does not name a type 4 | P operator-(P a,P b){ | ^ answer.code:7:1: error: ‘P’ does not name a type 7 | P operator/(P a,D val){ | ^ answer.code:10:1: error: ‘D’ does not name a type 10 | D len(P a){ | ^ answer.code:13:1: error: ‘D’ does not name a type 13 | D angle(P a){ | ^ answer.code:16:1: error: ‘P’ does not name a type 16 | P rot(P a,P ar){ | ^ answer.code:20:1: error: ‘P’ does not name a type 20 | P a[N]; | ^ answer.code:21:1: error: ‘D’ does not name a type 21 | D l[N]; | ^ answer.code:22:1: error: ‘D’ does not name a type 22 | D A[N],B[N],C[N]; | ^ answer.code: In function ‘int main()’: answer.code:25:5: error: ‘P’ was not declared in this scope 25 | P arg; | ^ answer.code:26:5: error: ‘D’ was not declared in this scope 26 | D d,t; | ^ answer.code:27:5: error: ‘cin’ was not declared in this scope 27 | cin>>n>>arg.x>>arg.y>>d>>t; | ^~~ answer.code:27:13: error: ‘arg’ was not declared in this scope 27 | cin>>n>>arg.x>>arg.y>>d>>t; | ^~~ answer.code:27:27: error: ‘d’ was not declared in this scope 27 | cin>>n>>arg.x>>arg.y>>d>>t; | ^ answer.code:27:30: error: ‘t’ was not declared in this scope 27 | cin>>n>>arg.x>>arg.y>>d>>t; | ^ answer.code:28:6: error: expected ‘;’ before ‘LEN’ 28 | D LEN=len(arg); | ^~~~ | ; answer.code:29:16: error: ‘LEN’ was not declared in this scope 29 | arg={arg.x/LEN,-arg.y/LEN}; | ^~~ answer.code:31:14: error: ‘a’ was not declared in this scope 31 | cin>>a[i].x>>a[i].y; | ^ answer.code:32:14: error: ‘rot’ was not declared in this scope 32 | a[i]=rot(a[i],arg); | ^~~ answer.code:33:9: error: ‘A’ was not declared in this scope 33 | A[i]=angle(a[i]); | ^ answer.code:33:14: error: ‘angle’ was not declared in this scope 33 | A[i]=angle(a[i]); | ^~~~~ answer.code:34:9: error: ‘l’ was not declared in this scope 34 | l[i]=len(a[i]); | ^ answer.code:34:14: error: ‘len’ was not declared in this scope 34 | l[i]=len(a[i]); | ^~~ answer.code:35:10: error: expected ‘;’ before ‘b’ 35 | P b={sqrt(l[i]*l[i]-d*d),d},c={-sqrt(l[i]*l[i]-d*d),d}; | ^~ | ; answer.code:35:36: error: expected primary-expression before ‘,’ token 35 | P b={sqrt(l[i]*l[i]-d*d),d},c={-sqrt(l[i]*l[i]-d*d),d}; | ^ answer.code:35:37: error: ‘c’ was not declared in this scope 35 | P b={sqrt(l[i]*l[i]-d*d),d},c={-sqrt(l[i]*l[i]-d*d),d}; | ^ answer.code:3:29: error: expected ‘)’ before numeric constant 3 | #define sqrt(x) sqrt(max((D)0,x)) | ~ ^ answer.code:35:41: note: in expansion of macro ‘sqrt’ 35 | P b={sqrt(l[i]*l[i]-d*d),d},c={-sqrt(l[i]*l[i]-d*d),d}; | ^~~~ answer.code:3:22: error: ‘max’ was not declared in this scope 3 | #define sqrt(x) sqrt(max((D)0,x)) | ^~~ answer.code:35:41: note: in expansion of macro ‘sqrt’ 35 | P b={sqrt(l[i]*l[i]-d*d),d},c={-sqrt(l[i]*l[i]-d*d),d}; | ^~~~ answer.code:3:17: error: ‘sqrt’ was not declared in this scope 3 | #define sqrt(x) sqrt(max((D)0,x)) | ^~~~ answer.code:35:41: note: in expansion of macro ‘sqrt’ 35 | P b={sqrt(l[i]*l[i]-d*d),d},c={-sqrt(l[i]*l[i]-d*d),d}; | ^~~~ answer.code:36:9: error: ‘B’ was not declared in this scope 36 | B[i]=angle(b); | ^ answer.code:36:20: error: ‘b’ was not declared in this scope 36 | B[i]=angle(b); | ^ answer.code:37:9: error: ‘C’ was not declared in this scope 37 | C[i]=angle(c); | ^