QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#163018#7109. Traveling on the Axisucup-team1306Compile Error//C++14890b2023-09-03 18:55:082023-09-03 18:55:09

详细

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