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_30270533_4613.cpp: In function 'bool getpp(P, P, P, P, P, P, D&, D&)':
0_0_30270533_4613.cpp:57:5: error: cannot convert 'P {aka std::complex<double>}' to 'D {aka double}' in assignment
   p1=A; p2=B;
     ^
0_0_30270533_4613.cpp:57:11: error: cannot convert 'P {aka std::complex<double>}' to 'D {aka double}' in assignment
   p1=A; p2=B;
           ^
0_0_30270533_4613.cpp:61:5: error: cannot convert 'P {aka std::complex<double>}' to 'D {aka double}' in assignment
   p1=N; p2=M;
     ^
0_0_30270533_4613.cpp:61:11: error: cannot convert 'P {aka std::complex<double>}' to 'D {aka double}' in assignment
   p1=N; p2=M;
           ^
0_0_30270533_4613.cpp:65:5: error: cannot convert 'P {aka std::complex<double>}' to 'D {aka double}' in assignment
   p1=A; p2=M;
     ^
0_0_30270533_4613.cpp:65:11: error: cannot convert 'P {aka std::complex<double>}' to 'D {aka double}' in assignment
   p1=A; p2=M;
           ^
0_0_30270533_4613.cpp:69:5: error: cannot convert 'P {aka std::complex<double>}' to 'D {aka double}' in assignment
   p1=B; p2=N;
     ^
0_0_30270533_4613.cpp:69:11: error: cannot convert 'P {aka std::complex<double>}' to 'D {aka double}' in assignment
   p1=B; p2=N;
           ^
0_0_30270533_4613.cpp:73:6: error: declaration of 'int t' shadows a parameter
  int t=0;
      ^
0_0_30270533_4613.cpp:79:11: error: invalid types 'int[int]' for array subscript
  p1=p2=t[0];
           ^
0_0_30270533_4613.cpp:81:15: error: invalid types 'int[int]' for array subscript
   if (cmpx(t[i],p1)) p1=t[i];
               ^
0_0_30270533_4613.cpp:81:28: error: invalid types 'int[int]' for array subscript
   if (cmpx(t[i],p1)) p1=t[i];
                            ^
0_0_30270533_4613.cpp:82:18: error: invalid types 'int[int]' for array subscript
   if (cmpx(p2,t[i])) p2=t[i];
                  ^
0_0_30270533_4613.cpp:82:28: error: invalid types 'int[int]' for array subscript
   if (cmpx(p2,t[i])) p2=t[i];
                            ^
0_0_30270533_4613.cpp: In function 'bool getkb(P, P, P, P, D&, D&, D&, D&)':
0_0_30270533_4613.cpp:89:26: error: too few arguments to function 'bool getpp(P, P, P, P, P, P, D&, D&)'
  if (!getpp(A,B,N,M,p1,p2)) return false;
                          ^
0_0_30270533_4613.cpp:55:6: note: declared here
 bool getpp(P A, P B, P N, P M, P s, P t, D &p1, D &p2){
      ^
0_0_30270533_4613.cpp: In function 'bool jfc(D, D, D, D, D, D, D&, D&)':
0_0_30270533_4613.cpp:108:12: error: 'a' was not declared in this scope
  if (!dcmp(a) && !dcmp(b)){
            ^
0_0_30270533_4613.cpp:108:24: error: 'b' was not declared in this scope
  if (!dcmp(a) && !dcmp(b)){
                        ^
0_0_30270533_4613.cpp:109:12: error: 'c' was not declared in this scope
   if (dcmp(c)) return false;
            ^
0_0_30270533_4613.cpp:113:12: error: 'a' was not declared in this scope
  if (!dcmp(a)){
            ^
0_0_30270533_4613.cpp:114:10: error: 'c' was not declared in this scope
   x=0; y=c/b;
          ^
0_0_30270533_4613.cpp:114:12: error: 'b' was not declared in this scope
   x=0; y=c/b;
            ^
0_0_30270533_4613.cpp:118:12: error: 'b' was not declared in this scope
  if (!dcmp(b)){
            ^
0_0_30270533_4613.cpp:119:5: error: 'c' was not declared in this scope
   x=c/a; y=0;
     ^
0_0_30270533_4613.cpp:119:7: error: 'a' was not declared in this scope
   x=c/a; y=0;
       ^
0_0_30270533_4613.cpp:124:7: error: 'c' was not declared in this scope
  D x1=c/a, x2=(c-b)/a;
       ^
0_0_30270533_4613.cpp:124:9: error: 'a' was not declared in this scope
  D x1=c/a, x2=(c-b)/a;
         ^
0_0_30270533_4613.cpp:125:9: error: 'x2' was not declared in this scope
  if (x1>x2) swap(x1,x2);
         ^
0_0_30270533_4613.cpp:127:16: error: 'x2' was not declared in this scope
  maxx=min(maxx,x2);
                ^
0_0_30270533_4613.cpp:129:20: error: 'b' was not declared in this scope
  x=minx; y=(c-a*x)/b;
                    ^
0_0_30270533_4613.cpp: In function 'int main()':
0_0_30270533_4613.cpp:135:11: error: expected '}' at end of input
 int main(){
           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-05 09:34:39, Gzip enabled