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_37794763_7827.cpp: In function 'void dft(std::shared_ptr<long long int []>&, int, int, bool)':
0_0_37794763_7827.cpp:48:25: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
     F(i,0,limit-1)t[i]=a[bt[i]];
                         ^
0_0_37794763_7827.cpp:54:20: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
     F(i,0,limit-1)a[i]=t[i];
                    ^
0_0_37794763_7827.cpp:57:24: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
         F(i,0,limit-1)a[i]=a[i]*inv%mod;
                        ^
0_0_37794763_7827.cpp:57:29: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
         F(i,0,limit-1)a[i]=a[i]*inv%mod;
                             ^
0_0_37794763_7827.cpp: In constructor 'P::P(int, const P&)':
0_0_37794763_7827.cpp:66:27: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
         F(i,0,min(b.l,l))f[i]=b.f[i];
                           ^
0_0_37794763_7827.cpp:66:34: error: no match for 'operator[]' (operand types are 'const std::shared_ptr<long long int []>' and 'int')
         F(i,0,min(b.l,l))f[i]=b.f[i];
                                  ^
0_0_37794763_7827.cpp:67:22: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
         F(i,b.l+1,l)f[i]=0;
                      ^
0_0_37794763_7827.cpp: In member function 'void P::print()':
0_0_37794763_7827.cpp:71:22: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
         F(i,0,l)pri(f[i], ' ');
                      ^
0_0_37794763_7827.cpp: In member function 'P P::operator*(P&)':
0_0_37794763_7827.cpp:82:27: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
         F(i,0,limit-1)f1.f[i]=(f1.f[i]*f2.f[i])%mod;
                           ^
0_0_37794763_7827.cpp:82:36: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
         F(i,0,limit-1)f1.f[i]=(f1.f[i]*f2.f[i])%mod;
                                    ^
0_0_37794763_7827.cpp:82:44: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
         F(i,0,limit-1)f1.f[i]=(f1.f[i]*f2.f[i])%mod;
                                            ^
0_0_37794763_7827.cpp: In function 'int main()':
0_0_37794763_7827.cpp:119:16: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
             f.f[0]=1;
                ^
0_0_37794763_7827.cpp:120:26: error: no match for 'operator[]' (operand types are 'std::shared_ptr<long long int []>' and 'int')
             F(i,1,l/2)f.f[i]=(combine(l-i,i)+combine(l-i-1,i-1))%mod;
                          ^
0_0_37794763_7827.cpp:131:41: error: no match for 'operator[]' (operand types are 'const std::shared_ptr<long long int []>' and 'int')
             pri(k<=pq.top().l?pq.top().f[k]:0,'\n');
                                         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr.h:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/memory:82,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:81,
                 from 0_0_37794763_7827.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h: In instantiation of 'std::__shared_ptr<_Tp, _Lp>::__shared_ptr(_Tp1*) [with _Tp1 = long long int; _Tp = long long int []; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr.h:113:32:   required from 'std::shared_ptr<_Tp>::shared_ptr(_Tp1*) [with _Tp1 = long long int; _Tp = long long int []]'
0_0_37794763_7827.cpp:64:32:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h:871:39: error: cannot convert 'long long int*' to 'long long int (*)[]' in initialization
         : _M_ptr(__p), _M_refcount(__p)
                                       ^


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