QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#153317#6425. Harmonious RectangleZhangYiDeCompile Error//C++111.2kb2023-08-29 21:38:552023-08-29 21:38:56

Details

answer.code:4:1: error: expected initializer before ‘const’
    4 | const LL mod=1e9+7;
      | ^~~~~
answer.code:6:1: error: ‘LL’ does not name a type
    6 | LL ans[9][9]={0, 0, 0, 0, 0, 0, 0, 0, 0,
      | ^~
answer.code:16:1: error: ‘LL’ does not name a type
   16 | LL fastpow(LL a,LL n,LL mod)
      | ^~
answer.code: In function ‘int main()’:
answer.code:40:59: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
   40 |                         printf("%lld\n",fastpow(3,1ll*n*m,mod));//????
      |                                                           ^~~
      |                                                           modf
answer.code:40:41: error: ‘fastpow’ was not declared in this scope
   40 |                         printf("%lld\n",fastpow(3,1ll*n*m,mod));//????
      |                                         ^~~~~~~
answer.code:44:41: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   44 |                         printf("%lld\n",ans[n-1][m-1]%mod);//????
      |                                         ^~~
      |                                         abs
answer.code:44:55: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
   44 |                         printf("%lld\n",ans[n-1][m-1]%mod);//????
      |                                                       ^~~
      |                                                       modf
answer.code:30:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   30 |         scanf("%d",&t);
      |         ~~~~~^~~~~~~~~
answer.code:33:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   33 |                 scanf("%d%d",&n,&m);
      |                 ~~~~~^~~~~~~~~~~~~~