QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#524865#7937. Fast XORtingZhangYiDeCompile Error//C++171.4kb2024-08-20 09:50:392024-08-20 09:50:40

Details

answer.code:36:35: error: stray ‘`’ in program
   36 |             int b = a[i] >> j & 1;`
      |                                   ^
answer.code: In function ‘int main()’:
answer.code:55:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   55 |         freopen("in.txt", "r", stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
answer.code:56:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   56 |         freopen("out.txt", "w", stdout);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~