QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#110655#6542. Optimal Quadratic Functionmoonrabbit2Compile Error//C++176.8kb2023-06-03 10:14:432023-06-03 10:14:47

Details

answer.code:171:2: error: stray ‘#’ in program
  171 | }#include <bits/stdc++.h>
      |  ^
answer.code:171:3: error: ‘include’ does not name a type
  171 | }#include <bits/stdc++.h>
      |   ^~~~~~~
answer.code:178:10: error: redefinition of ‘const ll inf’
  178 | const ll inf=1e18;
      |          ^~~
answer.code:8:10: note: ‘const ll inf’ previously defined here
    8 | const ll inf=1e18;
      |          ^~~
answer.code:179:11: error: redefinition of ‘const int N’
  179 | const int N=1005;
      |           ^
answer.code:9:11: note: ‘const int N’ previously defined here
    9 | const int N=1005;
      |           ^
answer.code:180:5: error: redefinition of ‘int n’
  180 | int n,m,X[N],Y[N];
      |     ^
answer.code:10:5: note: ‘int n’ previously declared here
   10 | int n,m,X[N],Y[N];
      |     ^
answer.code:180:7: error: redefinition of ‘int m’
  180 | int n,m,X[N],Y[N];
      |       ^
answer.code:10:7: note: ‘int m’ previously declared here
   10 | int n,m,X[N],Y[N];
      |       ^
answer.code:180:9: error: redefinition of ‘int X [1005]’
  180 | int n,m,X[N],Y[N];
      |         ^
answer.code:10:9: note: ‘int X [1005]’ previously declared here
   10 | int n,m,X[N],Y[N];
      |         ^
answer.code:180:14: error: redefinition of ‘int Y [1005]’
  180 | int n,m,X[N],Y[N];
      |              ^
answer.code:10:14: note: ‘int Y [1005]’ previously declared here
   10 | int n,m,X[N],Y[N];
      |              ^
answer.code:172:11: error: redefinition of ‘db first [1005]’
  172 | #define x first
      |           ^~~~~
answer.code:181:4: note: in expansion of macro ‘x’
  181 | db x[N],y[N],L,R,M,eps=1e-6;
      |    ^
answer.code:2:11: note: ‘db first [1005]’ previously declared here
    2 | #define x first
      |           ^~~~~
answer.code:11:4: note: in expansion of macro ‘x’
   11 | db x[N],y[N],L,R,M,eps=1e-6;
      |    ^
answer.code:173:11: error: redefinition of ‘db second [1005]’
  173 | #define y second
      |           ^~~~~~
answer.code:181:9: note: in expansion of macro ‘y’
  181 | db x[N],y[N],L,R,M,eps=1e-6;
      |         ^
answer.code:3:11: note: ‘db second [1005]’ previously declared here
    3 | #define y second
      |           ^~~~~~
answer.code:11:9: note: in expansion of macro ‘y’
   11 | db x[N],y[N],L,R,M,eps=1e-6;
      |         ^
answer.code:181:14: error: redefinition of ‘db L’
  181 | db x[N],y[N],L,R,M,eps=1e-6;
      |              ^
answer.code:11:14: note: ‘db L’ previously declared here
   11 | db x[N],y[N],L,R,M,eps=1e-6;
      |              ^
answer.code:181:16: error: redefinition of ‘db R’
  181 | db x[N],y[N],L,R,M,eps=1e-6;
      |                ^
answer.code:11:16: note: ‘db R’ previously declared here
   11 | db x[N],y[N],L,R,M,eps=1e-6;
      |                ^
answer.code:181:18: error: redefinition of ‘db M’
  181 | db x[N],y[N],L,R,M,eps=1e-6;
      |                  ^
answer.code:11:18: note: ‘db M’ previously declared here
   11 | db x[N],y[N],L,R,M,eps=1e-6;
      |                  ^
answer.code:181:20: error: redefinition of ‘db eps’
  181 | db x[N],y[N],L,R,M,eps=1e-6;
      |                    ^~~
answer.code:11:20: note: ‘db eps’ previously defined here
   11 | db x[N],y[N],L,R,M,eps=1e-6;
      |                    ^~~
answer.code:182:4: error: redefinition of ‘db ccw(pdb, pdb, pdb)’
  182 | db ccw(pdb P,pdb Q,pdb R){
      |    ^~~
answer.code:12:4: note: ‘db ccw(pdb, pdb, pdb)’ previously defined here
   12 | db ccw(pdb P,pdb Q,pdb R){
      |    ^~~
answer.code:185:6: error: redefinition of ‘bool ok(db)’
  185 | bool ok(db v){
      |      ^~
answer.code:15:6: note: ‘bool ok(db)’ previously defined here
   15 | bool ok(db v){
      |      ^~
answer.code:188:6: error: redefinition of ‘bool same(db, db)’
  188 | bool same(db x,db y){
      |      ^~~~
answer.code:18:6: note: ‘bool same(db, db)’ previously defined here
   18 | bool same(db x,db y){
      |      ^~~~
answer.code:191:8: error: redefinition of ‘struct Line’
  191 | struct Line{
      |        ^~~~
answer.code:21:8: note: previous definition of ‘struct Line’
   21 | struct Line{
      |        ^~~~
answer.code:205:4: error: redefinition of ‘db cross(Line, Line)’
  205 | db cross(Line A,Line B){
      |    ^~~~~
answer.code:35:4: note: ‘db cross(Line, Line)’ previously defined here
   35 | db cross(Line A,Line B){
      |    ^~~~~
answer.code:208:6: error: redefinition of ‘Line a [1005]’
  208 | Line a[N],b[N];
      |      ^
answer.code:38:6: note: ‘Line a [1005]’ previously declared here
   38 | Line a[N],b[N];
      |      ^
answer.code:208:11: error: redefinition of ‘Line b [1005]’
  208 | Line a[N],b[N];
      |           ^
answer.code:38:11: note: ‘Line b [1005]’ previously declared here
   38 | Line a[N],b[N];
      |           ^
answer.code:209:6: error: redefinition of ‘Line stka [1005]’
  209 | Line stka[N],stkb[N];
      |      ^~~~
answer.code:39:6: note: ‘Line stka [1005]’ previously declared here
   39 | Line stka[N],stkb[N];
      |      ^~~~
answer.code:209:...