QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#524865#7937. Fast XORtingZhangYiDeCompile Error//C++171.4kb2024-08-20 09:50:392024-08-20 09:50:40

详细

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