QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#530817 | #9221. Missing Boundaries | ucup-team162# | Compile Error | / | / | C++20 | 1002b | 2024-08-24 17:19:28 | 2024-08-24 17:19:29 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:3:1: error: ‘string’ does not name a type 3 | string grid[N]; | ^~~~~~ answer.code: In function ‘int sysidy(int, int)’: answer.code:14:24: error: ‘grid’ was not declared in this scope 14 | res += grid[i][j] == '#'; | ^~~~ answer.code:16:24: error: ‘grid’ was not declared in this scope 16 | res += grid[i][j - 1] == '#'; | ^~~~ answer.code:18:24: error: ‘grid’ was not declared in this scope 18 | res += grid[i - 1][j] == '#'; | ^~~~ answer.code:20:24: error: ‘grid’ was not declared in this scope 20 | res += grid[i - 1][j - 1] == '#'; | ^~~~ answer.code: In function ‘int cnt(int, int, int, int)’: answer.code:25:12: error: ‘abs’ was not declared in this scope 25 | if(abs(i0 - i1) > 1 || abs(j0 - j1) > 1) | ^~~ answer.code:31:25: error: ‘min’ was not declared in this scope 31 | int j = min(j0, j1); | ^~~ answer.code:34:33: error: ‘grid’ was not declared in this scope 34 | res += (grid[i0][j] == '#'); | ^~~~ answer.code:36:33: error: ‘grid’ was not declared in this scope 36 | res += (grid[i0 - 1][j] == '#'); | ^~~~ answer.code:41:25: error: ‘min’ was not declared in this scope 41 | int i = min(i0, i1); | ^~~ answer.code:44:33: error: ‘grid’ was not declared in this scope 44 | res += (grid[i][j0] == '#'); | ^~~~ answer.code:46:33: error: ‘grid’ was not declared in this scope 46 | res += (grid[i][j0 - 1] == '#'); | ^~~~ answer.code:49:17: error: ‘min’ was not declared in this scope 49 | int i = min(i0, i1); | ^~~ answer.code:52:16: error: ‘grid’ was not declared in this scope 52 | return grid[i][j] == '#'; | ^~~~