QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#163018#7109. Traveling on the Axisucup-team1306Compile Error//C++14890b2023-09-03 18:55:082023-09-03 18:55:09

Details

answer.code: In function ‘void solve()’:
answer.code:31:63: error: expected ‘)’ before ‘;’ token
   31 |                                 ans+=(n-r+l-1)*( (cnt-1)*cnt/2; );
      |                                                ~              ^
      |                                                               )
answer.code:31:65: error: expected primary-expression before ‘)’ token
   31 |                                 ans+=(n-r+l-1)*( (cnt-1)*cnt/2; );
      |                                                                 ^
answer.code:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |         scanf("%s",s+1);
      |         ~~~~~^~~~~~~~~~