QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#719472#9536. Athlete Welcome Ceremonyucup-team5635Compile Error//C111.4kb2024-11-07 01:36:442024-11-07 01:36:45

Details

answer.code:7:24: error: variably modified ‘f’ at file scope
 int n, q, A, B, C, qt, f[N][N][N], dp[N][N][N][3];
                        ^
answer.code:7:24: error: variably modified ‘f’ at file scope
answer.code:7:24: error: variably modified ‘f’ at file scope
answer.code:7:36: error: variably modified ‘dp’ at file scope
 int n, q, A, B, C, qt, f[N][N][N], dp[N][N][N][3];
                                    ^~
answer.code:7:36: error: variably modified ‘dp’ at file scope
answer.code:7:36: error: variably modified ‘dp’ at file scope
answer.code:8:6: error: variably modified ‘s’ at file scope
 char s[N];
      ^
answer.code: In function ‘main’:
answer.code:11:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d", &n, &q);
  ^~~~~~~~~~~~~~~~~~~~~
answer.code:12:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s", s);
  ^~~~~~~~~~~~~~
answer.code:47:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d%d", &A, &B, &C);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~