QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#189308#5424. NaN in a Heapcbant15Compile Error//C++143.2kb2023-09-27 10:14:202023-09-27 10:14:21

Details

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