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_21363429_32108.cpp:19:11: error: 'long long int pow [100]' redeclared as different kind of symbol
 ll pow[100];
           ^
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_21363429_32108.cpp:5:
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_21363429_32108.cpp: In function 'int main()':
0_0_21363429_32108.cpp:98:27: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
    memset(pow,0,sizeof(pow));
                           ^
0_0_21363429_32108.cpp:98:28: error: cannot resolve overloaded function 'pow' based on conversion to type 'void*'
    memset(pow,0,sizeof(pow));
                            ^
0_0_21363429_32108.cpp:99:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    pow[0]=1;pow[1]=q;
         ^
0_0_21363429_32108.cpp:99:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    pow[0]=1;pow[1]=q;
                  ^
0_0_21363429_32108.cpp:101:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     pow[i]=(pow[i-1]*pow[i-1])%mod;
          ^
0_0_21363429_32108.cpp:101:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     pow[i]=(pow[i-1]*pow[i-1])%mod;
                    ^
0_0_21363429_32108.cpp:101:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     pow[i]=(pow[i-1]*pow[i-1])%mod;
                             ^
0_0_21363429_32108.cpp:103:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     if ((m&(1LL<<(i-1)))>0) b=b*pow[i]%mod;
                                      ^
0_0_21363429_32108.cpp:120:27: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
    memset(pow,0,sizeof(pow));
                           ^
0_0_21363429_32108.cpp:120:28: error: cannot resolve overloaded function 'pow' based on conversion to type 'void*'
    memset(pow,0,sizeof(pow));
                            ^
0_0_21363429_32108.cpp:121:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    pow[0]=1;pow[1]=q;
         ^
0_0_21363429_32108.cpp:121:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    pow[0]=1;pow[1]=q;
                  ^
0_0_21363429_32108.cpp:123:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     pow[i]=(pow[i-1]*pow[i-1])%mod;
          ^
0_0_21363429_32108.cpp:123:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     pow[i]=(pow[i-1]*pow[i-1])%mod;
                    ^
0_0_21363429_32108.cpp:123:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     pow[i]=(pow[i-1]*pow[i-1])%mod;
                             ^
0_0_21363429_32108.cpp:125:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     if ((m&(1LL<<(i-1)))>0) b=b*pow[i]%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-11-16 12:30:19, Gzip enabled