QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#538707#8935. Puzzle: Easy as Scrabbleucup-team4794#Compile Error//C++145.2kb2024-08-31 13:03:072024-08-31 13:03:08

Details

answer.code:20:5: error: expected unqualified-id before ‘for’
   20 |     for (auto it = l; it != r; it++) (*it) = x
      |     ^~~
answer.code:20:23: error: ‘it’ does not name a type; did you mean ‘int’?
   20 |     for (auto it = l; it != r; it++) (*it) = x
      |                       ^~
      |                       int
answer.code:20:32: error: ‘it’ does not name a type; did you mean ‘int’?
   20 |     for (auto it = l; it != r; it++) (*it) = x
      |                                ^~
      |                                int
answer.code:63:1: error: ‘queue’ does not name a type
   63 | queue<pi> q;
      | ^~~~~
answer.code:64:1: error: ‘vector’ does not name a type
   64 | vector<ll> V[N][N];
      | ^~~~~~
answer.code: In function ‘bool check(ll, ll)’:
answer.code:67:19: error: ‘V’ was not declared in this scope
   67 |     for (auto i : V[x][y]) {
      |                   ^
answer.code: In function ‘void insert(ll, ll)’:
answer.code:94:9: error: ‘q’ was not declared in this scope
   94 |         q.emplace(x, y);
      |         ^
answer.code: In function ‘int main()’:
answer.code:126:13: error: ‘V’ was not declared in this scope
  126 |             V[d[0][i]][i].push_back(0);
      |             ^
answer.code:134:13: error: ‘V’ was not declared in this scope
  134 |             V[u[0][i]][i].push_back(1);
      |             ^
answer.code:144:13: error: ‘V’ was not declared in this scope
  144 |             V[i][r[i][0]].push_back(2);
      |             ^
answer.code:152:13: error: ‘V’ was not declared in this scope
  152 |             V[i][l[i][0]].push_back(3);
      |             ^
answer.code:156:13: error: ‘q’ was not declared in this scope
  156 |     while (!q.empty()) {
      |             ^
answer.code:159:14: error: ‘y’ was not declared in this scope
  159 |         F[x][y] = 0;
      |              ^
answer.code:162:23: error: ‘V’ was not declared in this scope
  162 |         for (auto i : V[x][y]) {
      |                       ^
answer.code:194:9: error: ‘V’ was not declared in this scope
  194 |         V[x][y].clear();
      |         ^
answer.code:99:42: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   99 |     for (ll i = 0; i <= n + 1; i++) scanf("%s", s[i]);
      |                                     ~~~~~^~~~~~~~~~~~