QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#483545#7364. 回文GuanYunchangCompile Error//C++14977b2024-07-18 19:06:132024-07-18 19:06:13

Details

answer.code:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<bits/stdc++.h>
      |  ^~~~~~
answer.code:8:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    8 | main(){
      | ^~~~
answer.code: In function ‘int main()’:
answer.code:25:17: error: ‘else’ without a previous ‘if’
   25 |                 else x=0;
      |                 ^~~~
answer.code:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         scanf("%s%d",s+1,&q),n=strlen(s);
      |         ~~~~~^~~~~~~~~~~~~~~
answer.code:21:26: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   21 |                 for(scanf("%d%d",&l,&r),u=0,w=r-l>>1;u^w;)if(v=u+w+1>>1,_(f,l+v,r-v)<v)w=v-1;
      |                     ~~~~~^~~~~~~~~~~~~~