QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#760049#9552. The Chariotrotcar08Compile Error//C++14652b2024-11-18 14:21:052024-11-18 14:21:05

詳細信息

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))
      |              ^