0_0_31170592_5196.cpp:59:2: error: stray '\243' in program
return 0£»
^
0_0_31170592_5196.cpp:59:2: error: stray '\273' in program
0_0_31170592_5196.cpp: In function 'int main()':
0_0_31170592_5196.cpp:39:14: error: expected unqualified-id before '[' token
node[a].push_back(node(b,c));
^
0_0_31170592_5196.cpp:44:33: error: expected primary-expression before '[' token
for(int i = 0; i < node[k].size(); i++){
^
0_0_31170592_5196.cpp:45:38: error: expected primary-expression before '[' token
for(int j = m; j >= node[k][i].w; j--){
^
0_0_31170592_5196.cpp:46:29: error: expected primary-expression before '[' token
if(dp[k][j-node[k][i].w] != -1)
^
0_0_31170592_5196.cpp:47:53: error: expected primary-expression before '[' token
dp[k][j] = max(dp[k][j], dp[k][j-node[k][i].w]+node[k][i].v);
^
0_0_31170592_5196.cpp:47:67: error: expected primary-expression before '[' token
dp[k][j] = max(dp[k][j], dp[k][j-node[k][i].w]+node[k][i].v);
^
0_0_31170592_5196.cpp:48:33: error: expected primary-expression before '[' token
if(dp[k-1][j-node[k][i].w] != -1)
^
0_0_31170592_5196.cpp:49:55: error: expected primary-expression before '[' token
dp[k][j] = max(dp[k][j], dp[k-1][j-node[k][i].w]+node[k][i].v);
^
0_0_31170592_5196.cpp:49:69: error: expected primary-expression before '[' token
dp[k][j] = max(dp[k][j], dp[k-1][j-node[k][i].w]+node[k][i].v);
^
0_0_31170592_5196.cpp:60:1: error: expected ';' before '}' token
}
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_31170592_5196.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h: In instantiation of 'typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int (*)[10100]; _Tp = int; typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type = void]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:740:14: required from 'void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int (*)[10100]; _Tp = int]'
0_0_31170592_5196.cpp:41:29: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:704:11: error: incompatible types in assignment of 'const int' to 'int [10100]'
*__first = __tmp;
^
|