QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#500098#8516. LED MatrixZhangYiDeCompile Error//C++14828b2024-07-31 22:20:332024-07-31 22:20:38

Details

answer.code:4:7: error: ‘ll’ does not name a type
    4 | const ll mod=1e9+7;
      |       ^~
answer.code:5:1: error: ‘ll’ does not name a type
    5 | ll T=1,n,m,ans=0,a[500005],f[500005];
      | ^~
answer.code: In function ‘void solve()’:
answer.code:9:14: error: ‘n’ was not declared in this scope
    9 |         cin>>n>>c>>k;
      |              ^
answer.code:15:17: error: ‘ll’ was not declared in this scope
   15 |                 ll flag1=0,flag2=0;
      |                 ^~
answer.code:20:33: error: ‘flag1’ was not declared in this scope; did you mean ‘flag’?
   20 |                                 flag1=1;break;
      |                                 ^~~~~
      |                                 flag
answer.code:27:33: error: ‘flag2’ was not declared in this scope; did you mean ‘flag’?
   27 |                                 flag2=1;break;
      |                                 ^~~~~
      |                                 flag
answer.code:34:21: error: ‘flag2’ was not declared in this scope; did you mean ‘flag’?
   34 |                 if (flag2==1&&flag1==1)
      |                     ^~~~~
      |                     flag
answer.code:34:31: error: ‘flag1’ was not declared in this scope; did you mean ‘flag’?
   34 |                 if (flag2==1&&flag1==1)
      |                               ^~~~~
      |                               flag
answer.code:38:21: error: ‘flag2’ was not declared in this scope; did you mean ‘flag’?
   38 |                 if (flag2==1&&flag==0)
      |                     ^~~~~
      |                     flag
answer.code: In function ‘int main()’:
answer.code:60:12: error: ‘T’ was not declared in this scope
   60 |     while (T--)
      |            ^