QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#418146#5. 在线 O(1) 逆元QedDust413Compile Error//C++203.5kb2024-05-23 11:22:262024-11-05 21:59:04

Details

implementer.cpp: In function ‘int main()’:
implementer.cpp:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   22 |         scanf("%d", &n);
      |         ~~~~~^~~~~~~~~~
answer.code: In member function ‘void ExgcdTable_i32::mat2x2::print()’:
answer.code:29:13: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
   29 |             cout<<a00<<","<<a01<<'\n';
      |             ^~~~
      |             std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:146,
                 from answer.code:1:
/usr/include/c++/13/iostream:63:18: note: ‘std::cout’ declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
answer.code: At global scope:
answer.code:106:16: error: no matching function for call to ‘ExgcdTable_i32::ExgcdTable_i32()’
  106 | ExgcdTable_i32 t;
      |                ^
answer.code:45:5: note: candidate: ‘ExgcdTable_i32::ExgcdTable_i32(int)’
   45 |     ExgcdTable_i32(int _B):B(_B),B2(B*B),t1(B2),t2(3*B),t3(3*B){
      |     ^~~~~~~~~~~~~~
answer.code:45:5: note:   candidate expects 1 argument, 0 provided
answer.code:13:8: note: candidate: ‘constexpr ExgcdTable_i32::ExgcdTable_i32(const ExgcdTable_i32&)’
   13 | struct ExgcdTable_i32{
      |        ^~~~~~~~~~~~~~
answer.code:13:8: note:   candidate expects 1 argument, 0 provided
answer.code:13:8: note: candidate: ‘constexpr ExgcdTable_i32::ExgcdTable_i32(ExgcdTable_i32&&)’
answer.code:13:8: note:   candidate expects 1 argument, 0 provided