QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#572280#7775. 【模板】矩阵快速幂DerekshakkCompile Error//C++177.6kb2024-09-18 13:27:132024-09-18 13:27:15

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);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~