0_0_13503255_17716.cpp:3:17: error: 'st' is not a namespace-name
using namespace st;
^
0_0_13503255_17716.cpp:3:19: error: expected namespace-name before ';' token
using namespace st;
^
0_0_13503255_17716.cpp: In function 'int main()':
0_0_13503255_17716.cpp:7:5: error: 'cin' was not declared in this scope
cin >> T;
^
0_0_13503255_17716.cpp:7:5: note: suggested alternative:
In file included from 0_0_13503255_17716.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
0_0_13503255_17716.cpp:10:9: error: 'vector' was not declared in this scope
vector<int> dp(n, 0);
^
0_0_13503255_17716.cpp:10:16: error: expected primary-expression before 'int'
vector<int> dp(n, 0);
^
0_0_13503255_17716.cpp:11:16: error: expected primary-expression before 'int'
vector<int> dp2(n, 0);
^
0_0_13503255_17716.cpp:15:24: error: 'dp' was not declared in this scope
cin >> dp[k];
^
0_0_13503255_17716.cpp:17:40: error: 'dp2' was not declared in this scope
dp[k] = max(dp[k], dp2[k - 1] + dp[k]);
^
0_0_13503255_17716.cpp:17:58: error: 'max' was not declared in this scope
dp[k] = max(dp[k], dp2[k - 1] + dp[k]);
^
0_0_13503255_17716.cpp:17:58: note: suggested alternative:
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_13503255_17716.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: 'std::max'
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
0_0_13503255_17716.cpp:18:36: error: 'dp2' was not declared in this scope
dp[k] = max(dp[k], dp2[k] + dp[k]);
^
0_0_13503255_17716.cpp:18:50: error: 'max' was not declared in this scope
dp[k] = max(dp[k], dp2[k] + dp[k]);
^
0_0_13503255_17716.cpp:18:50: note: suggested alternative:
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_13503255_17716.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: 'std::max'
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
0_0_13503255_17716.cpp:20:18: error: 'dp' was not declared in this scope
swap(dp, dp2);
^
0_0_13503255_17716.cpp:20:22: error: 'dp2' was not declared in this scope
swap(dp, dp2);
^
0_0_13503255_17716.cpp:20:25: error: 'swap' was not declared in this scope
swap(dp, dp2);
^
0_0_13503255_17716.cpp:20:25: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
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_13503255_17716.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note: 'std::swap'
swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
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_13503255_17716.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note: 'std::__exception_ptr::swap'
swap(exception_ptr& __lhs, exception_ptr& __rhs)
^
0_0_13503255_17716.cpp:22:9: error: 'cout' was not declared in this scope
cout << dp2[n - 1] << endl;
^
0_0_13503255_17716.cpp:22:9: note: suggested alternative:
In file included from 0_0_13503255_17716.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
0_0_13503255_17716.cpp:22:17: error: 'dp2' was not declared in this scope
cout << dp2[n - 1] << endl;
^
0_0_13503255_17716.cpp:22:31: error: 'endl' was not declared in this scope
cout << dp2[n - 1] << endl;
^
0_0_13503255_17716.cpp:22:31: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
from 0_0_13503255_17716.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^
|