QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#105705#6315. 填数游戏alch07#Compile Error//C++142.5kb2023-05-15 05:59:122024-05-26 02:54:34

Details

answer.code: In function ‘int main()’:
answer.code:11:8: error: ‘n’ was not declared in this scope
   11 | int s [n][2];
      |        ^
answer.code:20:24: error: ‘s’ was not declared in this scope
   20 |                 cin >> s[j][0];
      |                        ^
answer.code:23:24: error: ‘s’ was not declared in this scope
   23 |                 cin >> s[j][0] >> s[j][1];
      |                        ^
answer.code:30:24: error: ‘t’ was not declared in this scope
   30 |                 cin >> t[j][0];
      |                        ^
answer.code:33:24: error: ‘t’ was not declared in this scope
   33 |                 cin >> t[j][0] >> t[j][1];
      |                        ^
answer.code:42:21: error: ‘a’ was not declared in this scope
   42 |                     a[j] = s[j][0];
      |                     ^
answer.code:42:28: error: ‘s’ was not declared in this scope
   42 |                     a[j] = s[j][0];
      |                            ^
answer.code:44:21: error: ‘a’ was not declared in this scope
   44 |                     a[j] = s[j][1];
      |                     ^
answer.code:44:28: error: ‘s’ was not declared in this scope
   44 |                     a[j] = s[j][1];
      |                            ^
answer.code:49:21: error: ‘b’ was not declared in this scope
   49 |                     b[j] = t[j][0];
      |                     ^
answer.code:49:28: error: ‘t’ was not declared in this scope
   49 |                     b[j] = t[j][0];
      |                            ^
answer.code:51:21: error: ‘b’ was not declared in this scope
   51 |                     b[j] = t[j][1];
      |                     ^
answer.code:51:28: error: ‘t’ was not declared in this scope
   51 |                     b[j] = t[j][1];
      |                            ^
answer.code:60:20: error: ‘a’ was not declared in this scope
   60 |                 if(a[j] == b[j]){
      |                    ^
answer.code:60:28: error: ‘b’ was not declared in this scope
   60 |                 if(a[j] == b[j]){
      |                            ^
answer.code:64:18: error: ‘b’ was not declared in this scope
   64 |             sort(b,b+n);
      |                  ^
answer.code:70:13: error: ‘dp’ was not declared in this scope
   70 |             dp[0][i] = cnt;
      |             ^~
answer.code:82:21: error: ‘dp’ was not declared in this scope
   82 |                     dp[i][j] = min(dp[i-1][j], dp[i-1][j + (1 << (2*n-i))]);
      |                     ^~
answer.code:84:21: error: ‘dp’ was not declared in this scope
   84 |                     dp[i][j] = max(dp[i-1][j], dp[i-1][j + (1 << (2*n-i))]);
      |                     ^~
answer.code:88:12: error: ‘dp’ was not declared in this scope
   88 |         if(dp[2*n][0] == (n+1)){
      |            ^~