QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#767382#9552. The ChariotZhangYiDeCompile Error//C++17744b2024-11-20 20:47:262024-11-20 20:47:36

Details

answer.code:8:11: error: invalid preprocessing directive #A
    8 |         # A<(B,C)
      |           ^
answer.code:15:55: error: stray ‘#’ in program
   15 |         ans = min(ans, now + useb*B + (rest-useb)*C,  # A<B<C
      |                                                       ^
answer.code:16:57: error: stray ‘#’ in program
   16 |                 now + min(Y,rest)*B + max(0,rest-Y)*C)  # A<C<B
      |                                                         ^
answer.code:18:11: error: invalid preprocessing directive #C
   18 |         # C<(A,B)
      |           ^
answer.code:21:11: error: invalid preprocessing directive #A
   21 |         # A+B<C nB
      |           ^
answer.code:1:1: error: ‘def’ does not name a type
    1 | def solve():
      | ^~~