0_0_38229443_19324.cpp: In function 'int main()':
0_0_38229443_19324.cpp:24:19: error: expected primary-expression before ',' token
memset(dp,,sizeof(dp));
^
0_0_38229443_19324.cpp:25:19: error: expected primary-expression before ',' token
memset(pd,,sizeof(pd));
^
0_0_38229443_19324.cpp:28:21: error: no matching function for call to 'std::vector<long long int>::push_back()'
v.push_back();
^
0_0_38229443_19324.cpp:28:21: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_38229443_19324.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::value_type = long long int]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: candidate expects 1 argument, 0 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::value_type = long long int]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: candidate expects 1 argument, 0 provided
0_0_38229443_19324.cpp:30:21: error: expected primary-expression before ';' token
for(int i = ; i <= n; i++)
^
0_0_38229443_19324.cpp:36:21: error: no matching function for call to 'std::vector<long long int>::push_back()'
v.push_back();
^
0_0_38229443_19324.cpp:36:21: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_38229443_19324.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::value_type = long long int]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: candidate expects 1 argument, 0 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::value_type = long long int]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: candidate expects 1 argument, 0 provided
0_0_38229443_19324.cpp:37:12: error: expected primary-expression before ']' token
dp[]=;
^
0_0_38229443_19324.cpp:37:14: error: expected primary-expression before ';' token
dp[]=;
^
0_0_38229443_19324.cpp:38:21: error: expected primary-expression before ';' token
for(int i = ; i <= n;i++)
^
0_0_38229443_19324.cpp:39:33: error: expected primary-expression before ']' token
if(abs(v[i] - v[i - ])>dp[i-])
^
0_0_38229443_19324.cpp:39:41: error: expected primary-expression before ']' token
if(abs(v[i] - v[i - ])>dp[i-])
^
0_0_38229443_19324.cpp:41:38: error: expected primary-expression before ']' token
dp[i]=abs(v[i] - v[i-]);
^
0_0_38229443_19324.cpp:44:32: error: expected primary-expression before ']' token
dp[i] = dp[i - ];
^
0_0_38229443_19324.cpp:47:12: error: expected primary-expression before ']' token
pd[]=;
^
0_0_38229443_19324.cpp:47:14: error: expected primary-expression before ';' token
pd[]=;
^
0_0_38229443_19324.cpp:48:21: error: expected primary-expression before ';' token
for(int i = ; i <= n; i++)
^
0_0_38229443_19324.cpp:49:31: error: expected primary-expression before ']' token
if(abs(v[i] - v[i-]) > pd[i-])
^
0_0_38229443_19324.cpp:49:41: error: expected primary-expression before ']' token
if(abs(v[i] - v[i-]) > pd[i-])
^
0_0_38229443_19324.cpp:50:40: error: expected primary-expression before ']' token
pd[i] = abs(v[i] - v[i-]);
^
0_0_38229443_19324.cpp:52:32: error: expected primary-expression before ']' token
pd[i] = pd[i - ];
^
0_0_38229443_19324.cpp:54:23: error: expected primary-expression before ';' token
long long s = ;
^
0_0_38229443_19324.cpp:55:19: error: expected primary-expression before ';' token
for(int i=;i<=n;i++)
^
0_0_38229443_19324.cpp:57:19: error: expected primary-expression before ')' token
if(i==)
^
0_0_38229443_19324.cpp:58:25: error: expected primary-expression before ']' token
s+=pd[n-];
^
0_0_38229443_19324.cpp:60:25: error: expected primary-expression before ']' token
s+=dp[n-];
^
0_0_38229443_19324.cpp:62:29: error: expected primary-expression before ']' token
s+=Max(dp[i-],abs(v[i+] - v[i-]),pd[n-i]);
^
0_0_38229443_19324.cpp:62:39: error: expected primary-expression before ']' token
s+=Max(dp[i-],abs(v[i+] - v[i-]),pd[n-i]);
^
0_0_38229443_19324.cpp:62:47: error: expected primary-expression before ']' token
s+=Max(dp[i-],abs(v[i+] - v[i-]),pd[n-i]);
^
0_0_38229443_19324.cpp:66:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
return ;
^
|