QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#558582#8668. 回文路径HuluoboCompile Error//C++141.7kb2024-09-11 16:56:202024-09-11 16:56:21

Details

answer.code: In function ‘bool check(int)’:
answer.code:32:14: error: expected primary-expression before ‘)’ token
   32 |         for ()
      |              ^
answer.code:33:1: error: expected primary-expression before ‘}’ token
   33 | }
      | ^
answer.code:32:15: error: expected ‘;’ before ‘}’ token
   32 |         for ()
      |               ^
      |               ;
   33 | }
      | ~              
answer.code:33:1: error: expected primary-expression before ‘}’ token
   33 | }
      | ^
answer.code:32:15: error: expected ‘)’ before ‘}’ token
   32 |         for ()
      |             ~ ^
      |               )
   33 | }
      | ~              
answer.code:33:1: error: expected primary-expression before ‘}’ token
   33 | }
      | ^
answer.code:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
answer.code: In function ‘int main()’:
answer.code:36:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   36 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
answer.code:40:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   40 |         scanf("%s",c[1]+1);
      |         ~~~~~^~~~~~~~~~~~~
answer.code:41:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   41 |         scanf("%s",c[2]+1);
      |         ~~~~~^~~~~~~~~~~~~