QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#669334#9246. Dominating PointMaMengQiCompile Error//C++203.1kb2024-10-23 18:12:512024-10-23 18:12:52

Details

answer.code:1:30: warning: ‘-std=c++11’ is not an option that controls warnings [-Wpragmas]
    1 | #pragma GCC diagnostic error "-std=c++11"
      |                              ^~~~~~~~~~~~
answer.code:24:39: warning: bad option ‘-fwhole-program’ to pragma ‘optimize’ [-Wpragmas]
   24 | #pragma GCC optimize("-fwhole-program")
      |                                       ^
answer.code:31:41: warning: bad option ‘-fstrict-overflow’ to pragma ‘optimize’ [-Wpragmas]
   31 | #pragma GCC optimize("-fstrict-overflow")
      |                                         ^
answer.code:33:41: warning: bad option ‘-fcse-skip-blocks’ to pragma ‘optimize’ [-Wpragmas]
   33 | #pragma GCC optimize("-fcse-skip-blocks")
      |                                         ^
answer.code:47:51: warning: bad option ‘-funsafe-loop-optimizations’ to pragma ‘optimize’ [-Wpragmas]
   47 | #pragma GCC optimize("-funsafe-loop-optimizations")
      |                                                   ^
answer.code:60:10: warning: bad option ‘-fwhole-program’ to attribute ‘optimize’ [-Wattributes]
   60 | int main()
      |          ^
answer.code:60:10: warning: bad option ‘-fstrict-overflow’ to attribute ‘optimize’ [-Wattributes]
answer.code:60:10: warning: bad option ‘-fcse-skip-blocks’ to attribute ‘optimize’ [-Wattributes]
answer.code:60:10: warning: bad option ‘-funsafe-loop-optimizations’ to attribute ‘optimize’ [-Wattributes]
answer.code: In function ‘int main()’:
answer.code:79:44: error: invalid operands of types ‘std::bitset<5010> [5010]’ and ‘std::bitset<5010> [5010]’ to binary ‘operator&’
   79 |                         bitset<N>T=baser[i]&basec[j];
      |                                    ~~~~~~~~^~~~~~~~~
      |                                           |        |
      |                                           |        std::bitset<5010> [5010]
      |                                           std::bitset<5010> [5010]
answer.code:62:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   62 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
answer.code:69:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   69 |                         scanf("%c",&ch);
      |                         ~~~~~^~~~~~~~~~