QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#233027#5499. Aliasescbant15Compile Error//C++141.5kb2023-10-31 11:06:512023-10-31 11:06:51

Details

answer.code: In function ‘int sol()’:
answer.code:39:46: error: expected ‘;’ before ‘return’
   39 |   if (!rA && !rB && rC == 5) cout << n << " "
      |                                              ^
      |                                              ;
   40 |   return 0;
      |   ~~~~~~                                      
answer.code:41:1: warning: no return statement in function returning non-void [-Wreturn-type]
   41 | }
      | ^
answer.code: In function ‘int main()’:
answer.code:47:14: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   47 |       freopen((taskname"." + iext).c_str(), "r", stdin);
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:48:14: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   48 |       freopen(taskname".out", "w", stdout);
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~