QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#572274#7775. 【模板】矩阵快速幂DerekshakkCompile Error//C++117.6kb2024-09-18 13:25:112024-09-18 13:25:14

Details

answer.code: In function ‘int main()’:
answer.code:231:21: error: too few arguments to function ‘void computePaths(int, int)’
  231 |         computePaths();
      |         ~~~~~~~~~~~~^~
answer.code:87:6: note: declared here
   87 | void computePaths(int nodeCount, int edgeCount) {
      |      ^~~~~~~~~~~~
answer.code: In function ‘void computePaths(int, int)’:
answer.code:107:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  107 |         scanf("%d %d %lld", &sourceNode[i], &destNode[i], &weights[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:229:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  229 |     scanf("%*d\n%d", &testCases);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~