0_0_25288373_32090.cpp: In function 'void dp()':
0_0_25288373_32090.cpp:14:9: error: 'void dp()' redeclared as different kind of symbol
void dp()
^
0_0_25288373_32090.cpp:5:31: note: previous declaration 'int dp [500100]'
int n,m,head,tail,sum[N],q[N],dp[N];
^
0_0_25288373_32090.cpp:20:92: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
while(head<tail&&(getup(q[head+1])-getup(q[head]))<=sum[i]*(getdown[head+1]-getdown[head]))
^
0_0_25288373_32090.cpp: In function 'int main()':
0_0_25288373_32090.cpp:38:7: error: 'dp' cannot be used as a function
dp();
^
|