QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#418096#100. Tetrahedronsucup-team3213Compile Error//C++143.0kb2024-05-23 10:31:362024-05-23 10:31:37

詳細信息

answer.code: In function ‘int CalcAll(int, int, int)’:
answer.code:127:49: error: ‘MAdd’ was not declared in this scope
  127 |                                                 MAdd(f[i+1][l][0][1],f[i][j][0][k]);
      |                                                 ^~~~
answer.code:131:49: error: ‘MAdd’ was not declared in this scope
  131 |                                                 MAdd(f[i+1][l][0][1],f[i][j][1][k]);
      |                                                 ^~~~
answer.code:135:49: error: ‘MAdd’ was not declared in this scope
  135 |                                                 MAdd(f[i+1][l][0][1],f[i][j][2][k]);
      |                                                 ^~~~
answer.code:137:33: error: ‘MAdd’ was not declared in this scope
  137 |                                 MAdd(f[i+1][j][0][k+1],f[i][j][0][k]);
      |                                 ^~~~
answer.code:139:33: error: ‘MAdd’ was not declared in this scope
  139 |                                 MAdd(f[i+1][j][0][2],f[i][j][1][k]);
      |                                 ^~~~
answer.code:141:33: error: ‘MAdd’ was not declared in this scope
  141 |                                 MAdd(f[i+1][j][0][2],f[i][j][2][k]);
      |                                 ^~~~
answer.code:144:41: error: ‘MAdd’ was not declared in this scope
  144 |                                         MAdd(f[i+1][j+1][1][2],f[i][j][0][k]);
      |                                         ^~~~
answer.code:146:41: error: ‘MAdd’ was not declared in this scope
  146 |                                         MAdd(f[i+1][j+1][1][k+1],f[i][j][1][k]);
      |                                         ^~~~
answer.code:148:41: error: ‘MAdd’ was not declared in this scope
  148 |                                         MAdd(f[i+1][j+1][1][2],f[i][j][2][k]);
      |                                         ^~~~
answer.code:152:41: error: ‘MAdd’ was not declared in this scope
  152 |                                         MAdd(f[i+1][j-1][2][2],f[i][j][0][k]);
      |                                         ^~~~
answer.code:154:41: error: ‘MAdd’ was not declared in this scope
  154 |                                         MAdd(f[i+1][j+1][2][k+1],f[i][j][2][k]);
      |                                         ^~~~
answer.code:156:41: error: ‘MAdd’ was not declared in this scope
  156 |                                         MAdd(f[i+1][j+1][2][2],f[i][j][1][k]);
      |                                         ^~~~
answer.code:159:1: warning: no return statement in function returning non-void [-Wreturn-type]
  159 | }
      | ^
answer.code: In function ‘int Calc(int, int, int)’:
answer.code:162:35: error: ‘MOD’ was not declared in this scope
  162 |         return Add(CalcAll(n,a,b),MOD-Add(CalcNum(n,a,b),CalcLet(n,a,b)));
      |                                   ^~~
answer.code:162:43: error: ‘CalcNum’ was not declared in this scope
  162 |         return Add(CalcAll(n,a,b),MOD-Add(CalcNum(n,a,b),CalcLet(n,a,b)));
      |                                           ^~~~~~~
answer.code:162:58: error: ‘CalcLet’ was not declared in this scope
  162 |         return Add(CalcAll(n,a,b),MOD-Add(CalcNum(n,a,b),CalcLet(n,a,b)));
      |                                                          ^~~~~~~
answer.code:162:39: error: ‘Add’ was not declared in this scope
  162 |         return Add(CalcAll(n,a,b),MOD-Add(CalcNum(n,a,b),CalcLet(n,a,b)));
      |                                       ^~~
answer.code:162:16: error: ‘Add’ was not declared in this scope
  162 |         return Add(CalcAll(n,a,b),MOD-Add(CalcNum(n,a,b),CalcLet(n,a,b)));
      |                ^~~
answer.code: In function ‘int main()’:
answer.code:172:9: error: ‘l’ was not declared in this scope
  172 |         l=Read(),r=Read(),a=Read(),b=Read();
      |         ^
answer.code:172:18: error: ‘r’ was not declared in this scope
  172 |         l=Read(),r=Read(),a=Read(),b=Read();
      |                  ^
answer.code:172:27: error: ‘a’ was not declared in this scope
  172 |         l=Read(),r=Read(),a=Read(),b=Read();
      |                           ^
answer.code:172:36: error: ‘b’ was not declared in this scope
  172 |         l=Read(),r=Read(),a=Read(),b=Read();
      |                                    ^
answer.code:173:39: error: ‘MOD’ was not declared in this scope
  173 |         printf("%d\n",Add(Calc(r,a,b),MOD-Calc(l,a,b)));
      |                                       ^~~
answer.code:173:23: error: ‘Add’ was not declared in this scope
  173 |         printf("%d\n",Add(Calc(r,a,b),MOD-Calc(l,a,b)));
      |                       ^~~
answer.code:169:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  169 |         freopen(".in","r",stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~
answer.code:170:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared ...