QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#139027#5404. 述树术flower#Compile Error//C++202.0kb2023-08-12 16:42:182024-07-04 01:38:26

詳細信息

implementer.cpp: In function ‘int main()’:
implementer.cpp:124:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  124 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
implementer.cpp:127:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  127 |         scanf("%d%d", &a, &b);
      |         ~~~~~^~~~~~~~~~~~~~~~
implementer.cpp:145:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  145 |     scanf("%d", &test_stat);
      |     ~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106,
                 from answer.code:1:
answer.code: In function ‘int flower::ask(int, int)’:
answer.code:13:24: error: no match for ‘operator++’ (operand type is ‘std::bitset<1010>’)
   13 |                 assert(++tot< 250000);
      |                        ^~~~~