QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#287121#4414. Divide the SweetsZhangYiDeCompile Error//C++204.7kb2023-12-19 18:15:332023-12-19 18:15:34

Details

answer.code:22:39: warning: bad option ‘-fwhole-program’ to pragma ‘optimize’ [-Wpragmas]
   22 | #pragma GCC optimize("-fwhole-program")
      |                                       ^
answer.code:29:41: warning: bad option ‘-fstrict-overflow’ to pragma ‘optimize’ [-Wpragmas]
   29 | #pragma GCC optimize("-fstrict-overflow")
      |                                         ^
answer.code:31:41: warning: bad option ‘-fcse-skip-blocks’ to pragma ‘optimize’ [-Wpragmas]
   31 | #pragma GCC optimize("-fcse-skip-blocks")
      |                                         ^
answer.code:45:51: warning: bad option ‘-funsafe-loop-optimizations’ to pragma ‘optimize’ [-Wpragmas]
   45 | #pragma GCC optimize("-funsafe-loop-optimizations")
      |                                                   ^
answer.code:62:29: warning: bad option ‘-fwhole-program’ to attribute ‘optimize’ [-Wattributes]
   62 | inline long long get2y(int s){return a[s]*a[s]+dp[last][s];}
      |                             ^
answer.code:62:29: warning: bad option ‘-fstrict-overflow’ to attribute ‘optimize’ [-Wattributes]
answer.code:62:29: warning: bad option ‘-fcse-skip-blocks’ to attribute ‘optimize’ [-Wattributes]
answer.code:62:29: warning: bad option ‘-funsafe-loop-optimizations’ to attribute ‘optimize’ [-Wattributes]
answer.code:64:35: warning: bad option ‘-fwhole-program’ to attribute ‘optimize’ [-Wattributes]
   64 | inline bool cmp2(int i,int j,int k)
      |                                   ^
answer.code:64:35: warning: bad option ‘-fstrict-overflow’ to attribute ‘optimize’ [-Wattributes]
answer.code:64:35: warning: bad option ‘-fcse-skip-blocks’ to attribute ‘optimize’ [-Wattributes]
answer.code:64:35: warning: bad option ‘-funsafe-loop-optimizations’ to attribute ‘optimize’ [-Wattributes]
answer.code: In function ‘bool cmp2(int, int, int)’:
answer.code:70:32: error: expected ‘;’ before ‘}’ token
   70 |         /(getx(j)-getx(i)))<eps
      |                                ^
      |                                ;
   71 | }
      | ~                               
answer.code: At global scope:
answer.code:73:29: warning: bad option ‘-fwhole-program’ to attribute ‘optimize’ [-Wattributes]
   73 | inline bool cmp1(int x,int y){return a[x]<a[y];}
      |                             ^
answer.code:73:29: warning: bad option ‘-fstrict-overflow’ to attribute ‘optimize’ [-Wattributes]
answer.code:73:29: warning: bad option ‘-fcse-skip-blocks’ to attribute ‘optimize’ [-Wattributes]
answer.code:73:29: warning: bad option ‘-funsafe-loop-optimizations’ to attribute ‘optimize’ [-Wattributes]
answer.code:74:22: warning: bad option ‘-fwhole-program’ to attribute ‘optimize’ [-Wattributes]
   74 | inline void ins(int k)
      |                      ^
answer.code:74:22: warning: bad option ‘-fstrict-overflow’ to attribute ‘optimize’ [-Wattributes]
answer.code:74:22: warning: bad option ‘-fcse-skip-blocks’ to attribute ‘optimize’ [-Wattributes]
answer.code:74:22: warning: bad option ‘-funsafe-loop-optimizations’ to attribute ‘optimize’ [-Wattributes]
answer.code:86:10: warning: bad option ‘-fwhole-program’ to attribute ‘optimize’ [-Wattributes]
   86 | int main()
      |          ^
answer.code:86:10: warning: bad option ‘-fstrict-overflow’ to attribute ‘optimize’ [-Wattributes]
answer.code:86:10: warning: bad option ‘-fcse-skip-blocks’ to attribute ‘optimize’ [-Wattributes]
answer.code:86:10: warning: bad option ‘-funsafe-loop-optimizations’ to attribute ‘optimize’ [-Wattributes]
answer.code: In function ‘int main()’:
answer.code:95:43: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   95 |                 for(int i=0;i<n;i++) scanf("%d",&w[i]);
      |                                      ~~~~~^~~~~~~~~~~~