QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#625418#5245. Chodzenie po linie [B]dongyc666Compile Error//C++143.9kb2024-10-09 19:11:072024-10-09 19:11:08

Details

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