QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#40420#4377. BackpackZhangYiDeCompile Error//C++866b2022-07-21 16:42:492022-07-21 16:42:51

Details

answer.code: In function ‘void solve()’:
answer.code:38:21: error: expected primary-expression before ‘?’ token
   38 |      if(!flag) puts(?-1?); // ??????
      |                     ^
answer.code:38:25: error: expected primary-expression before ‘)’ token
   38 |      if(!flag) puts(?-1?); // ??????
      |                         ^
answer.code:38:25: error: expected ‘:’ before ‘)’ token
   38 |      if(!flag) puts(?-1?); // ??????
      |                         ^
      |                         :
answer.code:38:25: error: expected primary-expression before ‘)’ token
answer.code:38:25: error: expected ‘:’ before ‘)’ token
   38 |      if(!flag) puts(?-1?); // ??????
      |                         ^
      |                         :
answer.code:38:25: error: expected primary-expression before ‘)’ token