QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#567050#7775. 【模板】矩阵快速幂gg_gongCompile Error//C++205.9kb2024-09-16 05:45:052024-09-16 05:45:05

Details

answer.code:75:1: error: expected declaration before ‘}’ token
   75 | }
      | ^
answer.code: In function ‘int main()’:
answer.code:187:136: warning: narrowing conversion of ‘optimalcyc[i].std::pair<__int128, __int128>::second’ from ‘__int128’ to ‘long long int’ [-Wnarrowing]
  187 |                                                 fract tmp={optimalcyc[i].first,-(__int128)(step+rec)*optimalcyc[i].first,optimalcyc[i].second};
      |                                                                                                                          ~~~~~~~~~~~~~~^~~~~~
answer.code:119:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  119 |                 scanf("%s",k+1);
      |                 ~~~~~^~~~~~~~~~