F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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
                                       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-17 07:35:24, Gzip enabled