QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#856432#9735. Japanese Bandsminstdfx#Compile Error//C++203.1kb2025-01-13 23:52:402025-01-13 23:52:41

Details

answer.code: In function ‘void solve()’:
answer.code:89:9: error: expected primary-expression before ‘for’
   89 |         for(int i=0;i<m;++i)
      |         ^~~
answer.code:89:21: error: ‘i’ was not declared in this scope
   89 |         for(int i=0;i<m;++i)
      |                     ^
answer.code:90:36: error: the value of ‘m’ is not usable in a constant expression
   90 |                 for(int j=0;j<(1<<m);++j)
      |                                    ^
answer.code:61:11: note: ‘int m’ is not const
   61 | int n1,n2,m,k;
      |           ^
answer.code:90:36: error: the value of ‘m’ is not usable in a constant expression
   90 |                 for(int j=0;j<(1<<m);++j)
      |                                    ^
answer.code:61:11: note: ‘int m’ is not const
   61 | int n1,n2,m,k;
      |           ^
answer.code:90:36: error: the value of ‘m’ is not usable in a constant expression
   90 |                 for(int j=0;j<(1<<m);++j)
      |                                    ^
answer.code:61:11: note: ‘int m’ is not const
   61 | int n1,n2,m,k;
      |           ^
answer.code:90:36: error: the value of ‘m’ is not usable in a constant expression
   90 |                 for(int j=0;j<(1<<m);++j)
      |                                    ^
answer.code:61:11: note: ‘int m’ is not const
   61 | int n1,n2,m,k;
      |           ^
answer.code:90:36: error: the value of ‘m’ is not usable in a constant expression
   90 |                 for(int j=0;j<(1<<m);++j)
      |                                    ^
answer.code:61:11: note: ‘int m’ is not const
   61 | int n1,n2,m,k;
      |           ^
answer.code:90:36: error: the value of ‘m’ is not usable in a constant expression
   90 |                 for(int j=0;j<(1<<m);++j)
      |                                    ^
answer.code:61:11: note: ‘int m’ is not const
   61 | int n1,n2,m,k;
      |           ^
answer.code:90:36: error: the value of ‘m’ is not usable in a constant expression
   90 |                 for(int j=0;j<(1<<m);++j)
      |                                    ^
answer.code:61:11: note: ‘int m’ is not const
   61 | int n1,n2,m,k;
      |           ^
answer.code:90:36: error: the value of ‘m’ is not usable in a constant expression
   90 |                 for(int j=0;j<(1<<m);++j)
      |                                    ^
answer.code:61:11: note: ‘int m’ is not const
   61 | int n1,n2,m,k;
      |           ^
answer.code:90:36: error: the value of ‘m’ is not usable in a constant expression
   90 |                 for(int j=0;j<(1<<m);++j)
      |                                    ^
answer.code:61:11: note: ‘int m’ is not const
   61 | int n1,n2,m,k;
      |           ^
answer.code:90:29: error: ‘j’ was not declared in this scope
   90 |                 for(int j=0;j<(1<<m);++j)
      |                             ^