QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#558582#8668. 回文路径HuluoboCompile Error//C++141.7kb2024-09-11 16:56:202024-09-11 16:56:21

详细

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