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_18298113_10134.cpp:6:23: error: two or more data types in declaration of 'LD'
 typedef double double LD;//long double
                       ^
0_0_18298113_10134.cpp:11:2: error: 'LD' does not name a type
  LD x, y;
  ^
0_0_18298113_10134.cpp:13:9: error: expected ')' before 'x'
  cpx(LD x, LD y):x(x),y(y){}
         ^
0_0_18298113_10134.cpp: In function 'cpx operator+(cpx, cpx)':
0_0_18298113_10134.cpp:17:15: error: 'struct cpx' has no member named 'x'
  return cpx(a.x+b.x, a.y+b.y);
               ^
0_0_18298113_10134.cpp:17:19: error: 'struct cpx' has no member named 'x'
  return cpx(a.x+b.x, a.y+b.y);
                   ^
0_0_18298113_10134.cpp:17:24: error: 'struct cpx' has no member named 'y'
  return cpx(a.x+b.x, a.y+b.y);
                        ^
0_0_18298113_10134.cpp:17:28: error: 'struct cpx' has no member named 'y'
  return cpx(a.x+b.x, a.y+b.y);
                            ^
0_0_18298113_10134.cpp: In function 'cpx operator-(cpx, cpx)':
0_0_18298113_10134.cpp:21:15: error: 'struct cpx' has no member named 'x'
  return cpx(a.x-b.x, a.y-b.y);
               ^
0_0_18298113_10134.cpp:21:19: error: 'struct cpx' has no member named 'x'
  return cpx(a.x-b.x, a.y-b.y);
                   ^
0_0_18298113_10134.cpp:21:24: error: 'struct cpx' has no member named 'y'
  return cpx(a.x-b.x, a.y-b.y);
                        ^
0_0_18298113_10134.cpp:21:28: error: 'struct cpx' has no member named 'y'
  return cpx(a.x-b.x, a.y-b.y);
                            ^
0_0_18298113_10134.cpp: In function 'cpx operator*(cpx, cpx)':
0_0_18298113_10134.cpp:25:15: error: 'struct cpx' has no member named 'x'
  return cpx(a.x*b.x-a.y*b.y, a.x*b.y+a.y*b.x);
               ^
0_0_18298113_10134.cpp:25:19: error: 'struct cpx' has no member named 'x'
  return cpx(a.x*b.x-a.y*b.y, a.x*b.y+a.y*b.x);
                   ^
0_0_18298113_10134.cpp:25:23: error: 'struct cpx' has no member named 'y'
  return cpx(a.x*b.x-a.y*b.y, a.x*b.y+a.y*b.x);
                       ^
0_0_18298113_10134.cpp:25:27: error: 'struct cpx' has no member named 'y'
  return cpx(a.x*b.x-a.y*b.y, a.x*b.y+a.y*b.x);
                           ^
0_0_18298113_10134.cpp:25:32: error: 'struct cpx' has no member named 'x'
  return cpx(a.x*b.x-a.y*b.y, a.x*b.y+a.y*b.x);
                                ^
0_0_18298113_10134.cpp:25:36: error: 'struct cpx' has no member named 'y'
  return cpx(a.x*b.x-a.y*b.y, a.x*b.y+a.y*b.x);
                                    ^
0_0_18298113_10134.cpp:25:40: error: 'struct cpx' has no member named 'y'
  return cpx(a.x*b.x-a.y*b.y, a.x*b.y+a.y*b.x);
                                        ^
0_0_18298113_10134.cpp:25:44: error: 'struct cpx' has no member named 'x'
  return cpx(a.x*b.x-a.y*b.y, a.x*b.y+a.y*b.x);
                                            ^
0_0_18298113_10134.cpp: In function 'void fft(cpx*, int, int)':
0_0_18298113_10134.cpp:45:37: error: no matching function for call to 'cpx::cpx(long double, long double)'
   cpx wn(cosl(PI/i), flag*sinl(PI/i));
                                     ^
0_0_18298113_10134.cpp:45:37: note: candidates are:
0_0_18298113_10134.cpp:12:2: note: cpx::cpx()
  cpx(){}
  ^
0_0_18298113_10134.cpp:12:2: note:   candidate expects 0 arguments, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(const cpx&)
 struct cpx
        ^
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(cpx&&)
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:48:14: error: no matching function for call to 'cpx::cpx(int, int)'
    cpx w(1, 0);
              ^
0_0_18298113_10134.cpp:48:14: note: candidates are:
0_0_18298113_10134.cpp:12:2: note: cpx::cpx()
  cpx(){}
  ^
0_0_18298113_10134.cpp:12:2: note:   candidate expects 0 arguments, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(const cpx&)
 struct cpx
        ^
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(cpx&&)
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:59:9: error: 'struct cpx' has no member named 'x'
    a[i].x/=n, a[i].y/=n;
         ^
0_0_18298113_10134.cpp:59:20: error: 'struct cpx' has no member named 'y'
    a[i].x/=n, a[i].y/=n;
                    ^
0_0_18298113_10134.cpp: In function 'void roll(int*, int*, int*, int, int)':
0_0_18298113_10134.cpp:70:47: error: no matching function for call to 'cpx::cpx(int&, int)'
  for (int i=0;i<num;i++) A[i]=(i<n)?cpx(a[i],0):cpx(0,0);
                                               ^
0_0_18298113_10134.cpp:70:47: note: candidates are:
0_0_18298113_10134.cpp:12:2: note: cpx::cpx()
  cpx(){}
  ^
0_0_18298113_10134.cpp:12:2: note:   candidate expects 0 arguments, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(const cpx&)
 struct cpx
        ^
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(cpx&&)
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:70:56: error: no matching function for call to 'cpx::cpx(int, int)'
  for (int i=0;i<num;i++) A[i]=(i<n)?cpx(a[i],0):cpx(0,0);
                                                        ^
0_0_18298113_10134.cpp:70:56: note: candidates are:
0_0_18298113_10134.cpp:12:2: note: cpx::cpx()
  cpx(){}
  ^
0_0_18298113_10134.cpp:12:2: note:   candidate expects 0 arguments, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(const cpx&)
 struct cpx
        ^
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(cpx&&)
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:71:47: error: no matching function for call to 'cpx::cpx(int&, int)'
  for (int i=0;i<num;i++) B[i]=(i<m)?cpx(b[i],0):cpx(0,0); 
                                               ^
0_0_18298113_10134.cpp:71:47: note: candidates are:
0_0_18298113_10134.cpp:12:2: note: cpx::cpx()
  cpx(){}
  ^
0_0_18298113_10134.cpp:12:2: note:   candidate expects 0 arguments, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(const cpx&)
 struct cpx
        ^
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(cpx&&)
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:71:56: error: no matching function for call to 'cpx::cpx(int, int)'
  for (int i=0;i<num;i++) B[i]=(i<m)?cpx(b[i],0):cpx(0,0); 
                                                        ^
0_0_18298113_10134.cpp:71:56: note: candidates are:
0_0_18298113_10134.cpp:12:2: note: cpx::cpx()
  cpx(){}
  ^
0_0_18298113_10134.cpp:12:2: note:   candidate expects 0 arguments, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(const cpx&)
 struct cpx
        ^
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:9:8: note: constexpr cpx::cpx(cpx&&)
0_0_18298113_10134.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_18298113_10134.cpp:76:41: error: 'struct cpx' has no member named 'x'
  for (int i=0;i<num;i++) c[i]=(LL)(A[i].x+0.5)%mod;
                                         ^


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-07-03 01:21:12, Gzip enabled