QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#416965#1454. Um nik's AlgorithmqiuzxCompile Error//C++203.7kb2024-05-22 11:41:302024-05-22 11:41:31

详细

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:167:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wformat=]
  167 |                 printf("%d\n",ans.size());
      |                         ~^    ~~~~~~~~~~
      |                          |            |
      |                          int          std::vector<int>::size_type {aka long unsigned int}
      |                         %ld
answer.code:177:17: error: ‘ord’ was not declared in this scope
  177 |                 ord[i]=i;
      |                 ^~~
answer.code:179:17: error: ‘ord’ was not declared in this scope
  179 |         shuffle(ord+1,ord+m+1,rnd);
      |                 ^~~
answer.code:189:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wformat=]
  189 |         printf("%d\n",ans.size());
      |                 ~^    ~~~~~~~~~~
      |                  |            |
      |                  int          std::vector<int>::size_type {aka long unsigned int}
      |                 %ld