0_0_23421841_28860.cpp:6:8: error: redeclaration of 'int& ship::nbsp'
double x, y, d, s;
^
0_0_23421841_28860.cpp:6:2: note: previous declaration 'int& ship::nbsp'
double x, y, d, s;
^
0_0_23421841_28860.cpp:6:14: error: redeclaration of 'int& ship::nbsp'
double x, y, d, s;
^
0_0_23421841_28860.cpp:6:2: note: previous declaration 'int& ship::nbsp'
double x, y, d, s;
^
0_0_23421841_28860.cpp:7:2: error: redeclaration of 'int& ship::nbsp'
double sin, cos;
^
0_0_23421841_28860.cpp:6:2: note: previous declaration 'int& ship::nbsp'
double x, y, d, s;
^
0_0_23421841_28860.cpp:7:8: error: redeclaration of 'int& ship::nbsp'
double sin, cos;
^
0_0_23421841_28860.cpp:6:2: note: previous declaration 'int& ship::nbsp'
double x, y, d, s;
^
0_0_23421841_28860.cpp:7:14: error: redeclaration of 'int& ship::nbsp'
double sin, cos;
^
0_0_23421841_28860.cpp:6:2: note: previous declaration 'int& ship::nbsp'
double x, y, d, s;
^
0_0_23421841_28860.cpp:9:12: error: use of deleted function 'ship::ship()'
ship S[1005];
^
0_0_23421841_28860.cpp:5:8: note: 'ship::ship()' is implicitly deleted because the default definition would be ill-formed:
struct ship {
^
0_0_23421841_28860.cpp:5:8: error: uninitialized reference member in 'struct ship'
0_0_23421841_28860.cpp:6:2: note: 'int& ship::nbsp' should be initialized
double x, y, d, s;
^
0_0_23421841_28860.cpp: In function 'double distAB(ship&, ship&, double)':
0_0_23421841_28860.cpp:15:2: error: 'nbsp' was not declared in this scope
static double ax, ay, bx, by;
^
0_0_23421841_28860.cpp: In function 'double calcCollide(ship, ship, double)':
0_0_23421841_28860.cpp:23:2: error: 'nbsp' was not declared in this scope
if(distAB(a, b, 0) <= R*R)
^
0_0_23421841_28860.cpp:34:39: error: 'else' without a previous 'if'
else l = mid;
^
0_0_23421841_28860.cpp:44:39: error: 'else' without a previous 'if'
else
^
0_0_23421841_28860.cpp: In function 'int main()':
0_0_23421841_28860.cpp:50:2: error: 'nbsp' was not declared in this scope
int testcase;
^
0_0_23421841_28860.cpp:69:39: error: 'else' without a previous 'if'
else
^
|