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_20023278_9311.cpp:9:54: error: 'int pow [4]' redeclared as different kind of symbol
 int n,k,a[N],b[N],f[N][K],g[2][K],lengthProduct,pow[4];
                                                      ^
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++/random:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_20023278_9311.cpp:2:
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_20023278_9311.cpp: In function 'int length(int)':
0_0_20023278_9311.cpp:14:21: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
         return pow[0];
                     ^
0_0_20023278_9311.cpp:16:21: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
         return pow[1];
                     ^
0_0_20023278_9311.cpp:18:21: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
         return pow[2];
                     ^
0_0_20023278_9311.cpp:20:21: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
         return pow[3];
                     ^
0_0_20023278_9311.cpp: In function 'int main()':
0_0_20023278_9311.cpp:27:19: error: assignment of read-only location '*(pow + ((sizetype)i))'
             pow[i]=v%k;
                   ^
0_0_20023278_9311.cpp:27:19: error: cannot convert 'int' to 'double(double, double)' in assignment


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 03:23:58, Gzip enabled