QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#314820#7737. Extending DistanceQAQQWQCompile Error//C++143.2kb2024-01-26 11:37:002024-01-26 11:37:01

Details

answer.code: In function ‘int main()’:
answer.code:74:17: error: expected unqualified-id before ‘for’
   74 |                 for(int i=1;i<=n;i++)for(int j=1;j<m;j++){
      |                 ^~~
answer.code:74:29: error: ‘i’ was not declared in this scope
   74 |                 for(int i=1;i<=n;i++)for(int j=1;j<m;j++){
      |                             ^
answer.code:74:50: error: ‘j’ was not declared in this scope
   74 |                 for(int i=1;i<=n;i++)for(int j=1;j<m;j++){
      |                                                  ^
answer.code:106:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
  106 |                         printf("%d%c",rw[i][j]+flww.w[eri[0][i][j]]+flww.w[eri[1][i][j]],(j==m-1?'\n':' '));
      |                                 ~^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                  |                                 |
      |                                  int                               long long int
      |                                 %lld
answer.code:109:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
  109 |                         if(j==1||j==m)printf("%d%c",lw[i][j],(j==m?'\n':' '));
      |                                               ~^    ~~~~~~~~
      |                                                |           |
      |                                                int         long long int
      |                                               %lld
answer.code:110:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
  110 |                         else printf("%d%c",lw[i][j]+flww.w[eli[0][i][j]]+flww.w[eli[1][i][j]],(j==m?'\n':' '));
      |                                      ~^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                       |                                 |
      |                                       int                               long long int
      |                                      %lld