QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#760049 | #9552. The Chariot | rotcar08 | Compile Error | / | / | C++14 | 652b | 2024-11-18 14:21:05 | 2024-11-18 14:21:05 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:1:1: error: ‘import’ does not name a type 1 | import math | ^~~~~~ answer.code:1:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’ answer.code:10:9: error: expected unqualified-id before ‘else’ 10 | else:ans=min(ans,a+b*(d-x)) | ^~~~ answer.code:17:9: error: expected unqualified-id before ‘else’ 17 | else:ans=min(ans,ans2*a+b*y+c*(s-y)); | ^~~~ answer.code:18:9: error: ‘ans1’ does not name a type 18 | ans1=d//(x+y); | ^~~~ answer.code:20:9: error: ‘ans1’ does not name a type 20 | ans1*=(y*b+a); | ^~~~ answer.code:21:9: error: expected unqualified-id before ‘if’ 21 | if(ans1>0):ans=min(ans,ans1+c*(d-d%(x+y))); | ^~ answer.code:22:9: error: expected unqualified-id before ‘if’ 22 | if(d%(x+y)<=x): ans1+=a-b*min(s,(x-d%(x+y))); | ^~ answer.code:23:9: error: expected unqualified-id before ‘else’ 23 | else:ans1+=a+(d%(x+y)-x)*b; | ^~~~ answer.code:24:14: error: expected constructor, destructor, or type conversion before ‘(’ token 24 | print(min(ans,ans1)) | ^