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_22985269_822.cpp:6:14: error: 'LL pow [20][20]' redeclared as different kind of symbol
 LL pow[20][20],argmt[20];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
                 from 0_0_22985269_822.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note: previous declaration 'double pow(double, double)'
   double __cdecl pow(double _X,double _Y);
                  ^
0_0_22985269_822.cpp: In function 'LL dfs(int, LL, int)':
0_0_22985269_822.cpp:13:19: error: invalid operands of types 'int' and 'double(double, double)' to binary 'operator*'
  if(len*pow[top][k]<sum) return 0;
                   ^
0_0_22985269_822.cpp:27:34: error: invalid operands of types 'int' and 'double(double, double)' to binary 'operator*'
   ret+=dfs(len-i,sum-i*pow[top][k],top-1);
                                  ^
0_0_22985269_822.cpp: In function 'LL solve(LL)':
0_0_22985269_822.cpp:45:35: error: invalid operands of types 'LL {aka long long int}' and 'double(double, double)' to binary 'operator-'
    ret+=sub_solve(i-1,sum-pow[j][k]);
                                   ^
0_0_22985269_822.cpp:47:6: error: invalid operands of types 'LL {aka long long int}' and 'double(double, double)' to binary 'operator-'
   sum-=pow[bit[i]][k];//这里表示sum取到了最大的值
      ^
0_0_22985269_822.cpp:47:6: error:   in evaluation of 'operator-=(LL {aka long long int}, double(double, double))'
0_0_22985269_822.cpp: In function 'int main()':
0_0_22985269_822.cpp:58:12: error: assignment of read-only location '*(pow + ((sizetype)i))'
   pow[i][0]=1;
            ^
0_0_22985269_822.cpp:58:12: error: cannot convert 'int' to 'double(double, double)' in assignment
0_0_22985269_822.cpp:59:47: error: invalid operands of types 'double(double, double)' and 'int' to binary 'operator*'
   for(int j=1;j<16;++j) pow[i][j]=pow[i][j-1]*i;
                                               ^


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-11-27 06:42:35, Gzip enabled