QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#771658#8049. Equal SumsHuluoboCompile Error//C++141.6kb2024-11-22 14:55:312024-11-22 14:55:32

Details

answer.code:8:1: error: ‘ss’ does not name a type
    8 | ss
      | ^~
answer.code:14:1: error: ‘LL’ does not name a type
   14 | LL f[N][N][M];
      | ^~
answer.code: In function ‘int main()’:
answer.code:25:5: error: ‘f’ was not declared in this scope
   25 |     f[0][0][zero] = 1;
      |     ^
answer.code:34:17: error: ‘LL’ was not declared in this scope
   34 |                 LL &p = f[i][j][k];
      |                 ^~
answer.code:34:21: error: ‘p’ was not declared in this scope
   34 |                 LL &p = f[i][j][k];
      |                     ^
answer.code:37:25: error: ‘v’ was not declared in this scope
   37 |                     LL &v = f[i + 1][j][k + la[i + 1]];
      |                         ^
answer.code:38:25: error: ‘g’ was not declared in this scope
   38 |                     LL &g = f[i + 1][j][k + ra[i + 1] + 1];
      |                         ^
answer.code:44:25: error: ‘v’ was not declared in this scope
   44 |                     LL &v = f[i][j + 1][k - lb[j + 1] + 1];
      |                         ^
answer.code:45:25: error: ‘g’ was not declared in this scope
   45 |                     LL &g = f[i][j + 1][k - rb[j + 1]];
      |                         ^
answer.code:20:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   20 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   22 |         scanf("%d%d", &la[i], &ra[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code:23:41: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   23 |     for (int i = 1; i <= m; i ++ ) scanf("%d%d", &lb[i], &rb[i]);
      |                                    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~