QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#625418#5245. Chodzenie po linie [B]dongyc666Compile Error//C++143.9kb2024-10-09 19:11:072024-10-09 19:11:08

详细

answer.code: In function ‘int main()’:
answer.code:168:85: error: expected primary-expression before ‘;’ token
  168 |                 for(auto lcy:qbuc[i])ans[lcy.id]+=calc(lcy.x,n)-sum[from[lcy.id]+1],;
      |                                                                                     ^
answer.code:102:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  102 |         freopen("permutation.in","r",stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~