QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#189309#5433. Absolute Differencecbant15Compile Error//C++143.2kb2023-09-27 10:14:412023-09-27 10:14:42

详细

answer.code: In function ‘int main()’:
answer.code:83:41: error: ‘r’ was not declared in this scope
   83 |         if (e && j < m && a[i] == b[j]) r{
      |                                         ^
answer.code:23:14: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   23 |       freopen((taskname"." + iext).c_str(), "r", stdin);
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:24:14: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   24 |       freopen(taskname".out", "w", stdout);
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~