QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#519598#5140. Frozen ScoreboardMaMengQiCompile Error//C++204.0kb2024-08-14 22:01:332024-08-14 22:01:34

Details

answer.code:130:11: error: redefinition of ‘const int N’
  130 | const int N = 1e3 + 5;
      |           ^
answer.code:5:11: note: ‘const int N’ previously defined here
    5 | const int N = 1e3 + 5;
      |           ^
answer.code:132:5: error: redefinition of ‘int n’
  132 | int n, m, a, b, x[N], y[N], h[N];
      |     ^
answer.code:7:5: note: ‘int n’ previously declared here
    7 | int n, m, a, b, x[N], y[N], h[N];
      |     ^
answer.code:132:8: error: redefinition of ‘int m’
  132 | int n, m, a, b, x[N], y[N], h[N];
      |        ^
answer.code:7:8: note: ‘int m’ previously declared here
    7 | int n, m, a, b, x[N], y[N], h[N];
      |        ^
answer.code:132:11: error: redefinition of ‘int a’
  132 | int n, m, a, b, x[N], y[N], h[N];
      |           ^
answer.code:7:11: note: ‘int a’ previously declared here
    7 | int n, m, a, b, x[N], y[N], h[N];
      |           ^
answer.code:132:14: error: redefinition of ‘int b’
  132 | int n, m, a, b, x[N], y[N], h[N];
      |              ^
answer.code:7:14: note: ‘int b’ previously declared here
    7 | int n, m, a, b, x[N], y[N], h[N];
      |              ^
answer.code:132:17: error: redefinition of ‘int x [1005]’
  132 | int n, m, a, b, x[N], y[N], h[N];
      |                 ^
answer.code:7:17: note: ‘int x [1005]’ previously declared here
    7 | int n, m, a, b, x[N], y[N], h[N];
      |                 ^
answer.code:132:23: error: redefinition of ‘int y [1005]’
  132 | int n, m, a, b, x[N], y[N], h[N];
      |                       ^
answer.code:7:23: note: ‘int y [1005]’ previously declared here
    7 | int n, m, a, b, x[N], y[N], h[N];
      |                       ^
answer.code:132:29: error: redefinition of ‘int h [1005]’
  132 | int n, m, a, b, x[N], y[N], h[N];
      |                             ^
answer.code:7:29: note: ‘int h [1005]’ previously declared here
    7 | int n, m, a, b, x[N], y[N], h[N];
      |                             ^
answer.code:134:6: error: redefinition of ‘char op [1005]’
  134 | char op[N], e;
      |      ^~
answer.code:9:6: note: ‘char op [1005]’ previously declared here
    9 | char op[N], e;
      |      ^~
answer.code:134:13: error: redefinition of ‘char e’
  134 | char op[N], e;
      |             ^
answer.code:9:13: note: ‘char e’ previously declared here
    9 | char op[N], e;
      |             ^
answer.code:136:6: error: redefinition of ‘bool flag’
  136 | bool flag = false;
      |      ^~~~
answer.code:11:6: note: ‘bool flag’ previously defined here
   11 | bool flag = false;
      |      ^~~~
answer.code:138:6: error: redefinition of ‘void check()’
  138 | void check() {
      |      ^~~~~
answer.code:13:6: note: ‘void check()’ previously defined here
   13 | void check() {
      |      ^~~~~
answer.code:177:6: error: redefinition of ‘void dfs(int)’
  177 | void dfs(int cur) {
      |      ^~~
answer.code:51:6: note: ‘void dfs(int)’ previously defined here
   51 | void dfs(int cur) {
      |      ^~~
answer.code:191:8: error: redefinition of ‘int main()’
  191 | signed main() {
      |        ^~~~
answer.code:65:8: note: ‘int main()’ previously defined here
   65 | signed main() {
      |        ^~~~