QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#317855#8177. Sum is IntegerqiuzxCompile Error//C++172.6kb2024-01-29 20:36:232024-01-29 20:36:23

Details

answer.code:5:30: warning: ‘-fwhole-program’ is not an option that controls warnings [-Wpragmas]
    5 | #pragma GCC diagnostic error "-fwhole-program"
      |                              ^~~~~~~~~~~~~~~~~
answer.code:6:30: warning: ‘-fcse-skip-blocks’ is not an option that controls warnings [-Wpragmas]
    6 | #pragma GCC diagnostic error "-fcse-skip-blocks"
      |                              ^~~~~~~~~~~~~~~~~~~
answer.code:7:30: warning: ‘-funsafe-loop-optimizations’ is not an option that controls warnings [-Wpragmas]
    7 | #pragma GCC diagnostic error "-funsafe-loop-optimizations"
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:88:17: error: ‘idv’ was not declared in this scope; did you mean ‘idvs’?
   88 |                 idv[i]=rnd();
      |                 ^~~
      |                 idvs
answer.code:36:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   36 |         scanf("%lld",&n);
      |         ~~~~~^~~~~~~~~~~
answer.code:39:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   39 |                 scanf("%lld%lld",&p[i],&q[i]);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~