QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#792625#9750. 拼图ucup-team3363#Compile Error//C++203.0kb2024-11-29 12:04:362024-11-29 12:04:37

Details

answer.code:113:11: error: redefinition of ‘const int inf’
  113 | const int inf = 0x3f3f3f3f;
      |           ^~~
answer.code:23:11: note: ‘const int inf’ previously defined here
   23 | const int inf = 0x3f3f3f3f;
      |           ^~~
answer.code:114:11: error: redefinition of ‘const int N’
  114 | const int N = 2e5 + 5;
      |           ^
answer.code:24:11: note: ‘const int N’ previously defined here
   24 | const int N = 2e5 + 5;
      |           ^
answer.code:117:5: error: redefinition of ‘int a’
  117 | int a, b, c, d;
      |     ^
answer.code:27:5: note: ‘int a’ previously declared here
   27 | int a, b, c, d;
      |     ^
answer.code:117:8: error: redefinition of ‘int b’
  117 | int a, b, c, d;
      |        ^
answer.code:27:8: note: ‘int b’ previously declared here
   27 | int a, b, c, d;
      |        ^
answer.code:117:11: error: redefinition of ‘int c’
  117 | int a, b, c, d;
      |           ^
answer.code:27:11: note: ‘int c’ previously declared here
   27 | int a, b, c, d;
      |           ^
answer.code:117:14: error: redefinition of ‘int d’
  117 | int a, b, c, d;
      |              ^
answer.code:27:14: note: ‘int d’ previously declared here
   27 | int a, b, c, d;
      |              ^
answer.code:118:5: error: redefinition of ‘int ans’
  118 | int ans = 0;
      |     ^~~
answer.code:28:5: note: ‘int ans’ previously defined here
   28 | int ans = 0;
      |     ^~~
answer.code:119:6: error: redefinition of ‘bool check(int, int)’
  119 | bool check(int x, int y) {
      |      ^~~~~
answer.code:29:6: note: ‘bool check(int, int)’ previously defined here
   29 | bool check(int x, int y) {
      |      ^~~~~
answer.code:144:6: error: redefinition of ‘void solve()’
  144 | void solve() {
      |      ^~~~~
answer.code:54:6: note: ‘void solve()’ previously defined here
   54 | void solve() {
      |      ^~~~~
answer.code:166:6: error: redefinition of ‘void _init()’
  166 | void _init() {}
      |      ^~~~~
answer.code:76:6: note: ‘void _init()’ previously defined here
   76 | void _init() {}
      |      ^~~~~
answer.code:168:5: error: redefinition of ‘int main()’
  168 | int main() {
      |     ^~~~
answer.code:78:5: note: ‘int main()’ previously defined here
   78 | int main() {
      |     ^~~~