QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#316642#8174. Set Constructionucup-team130#Compile Error//C++175.0kb2024-01-27 23:59:342024-01-27 23:59:34

詳細信息

answer.code: In function ‘int main()’:
answer.code:170:90: error: no matching function for call to ‘tans::tans(int&, long long int, int, int, int, const int&)’
  170 |                                 add(tans(n, (1LL << k) + (1LL << l), -1, -1, -1, POWERADD));
      |                                                                                          ^
answer.code:34:8: note: candidate: ‘tans::tans()’
   34 | struct tans
      |        ^~~~
answer.code:34:8: note:   candidate expects 0 arguments, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(const tans&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(tans&&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code:177:91: error: no matching function for call to ‘tans::tans(int&, int&, int, int, int, const int&)’
  177 |                 for (int i = 2; i <= (a + 1) * (b + 1); i++) add(tans(n, i, -1, -1, -1, SQ));
      |                                                                                           ^
answer.code:34:8: note: candidate: ‘tans::tans()’
   34 | struct tans
      |        ^~~~
answer.code:34:8: note:   candidate expects 0 arguments, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(const tans&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(tans&&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code:180:45: error: no matching function for call to ‘tans::tans(int, int, int, int, int, const int&)’
  180 |         add(tans(5, 14, -1, -1, -1, POWERADD));
      |                                             ^
answer.code:34:8: note: candidate: ‘tans::tans()’
   34 | struct tans
      |        ^~~~
answer.code:34:8: note:   candidate expects 0 arguments, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(const tans&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(tans&&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code:181:45: error: no matching function for call to ‘tans::tans(int, int, int, int, int, const int&)’
  181 |         add(tans(5, 15, -1, -1, -1, POWERADD));
      |                                             ^
answer.code:34:8: note: candidate: ‘tans::tans()’
   34 | struct tans
      |        ^~~~
answer.code:34:8: note:   candidate expects 0 arguments, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(const tans&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(tans&&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code:183:45: error: no matching function for call to ‘tans::tans(int, int, int, int, int, const int&)’
  183 |         add(tans(6, 27, -1, -1, -1, POWERADD));
      |                                             ^
answer.code:34:8: note: candidate: ‘tans::tans()’
   34 | struct tans
      |        ^~~~
answer.code:34:8: note:   candidate expects 0 arguments, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(const tans&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code:34:8: note: candidate: ‘constexpr tans::tans(tans&&)’
answer.code:34:8: note:   candidate expects 1 argument, 6 provided
answer.code: In function ‘void solve()’:
answer.code:132:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  132 |         scanf("%d%d", &n, &m);
      |         ~~~~~^~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:213:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  213 |     scanf("%d", &NT);
      |     ~~~~~^~~~~~~~~~~