0_0_13503263_9942.cpp:15:17: error: 'st' is not a namespace-name
using namespace st;
^
0_0_13503263_9942.cpp:15:19: error: expected namespace-name before ';' token
using namespace st;
^
0_0_13503263_9942.cpp: In function 'int main()':
0_0_13503263_9942.cpp:19:5: error: 'cin' was not declared in this scope
cin >> T;
^
0_0_13503263_9942.cpp:19:5: note: suggested alternative:
In file included from 0_0_13503263_9942.cpp:9: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_13503263_9942.cpp:22:9: error: 'vector' was not declared in this scope
vector<int> dp(n, 0);
^
0_0_13503263_9942.cpp:22:9: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
from 0_0_13503263_9942.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^
0_0_13503263_9942.cpp:22:16: error: expected primary-expression before 'int'
vector<int> dp(n, 0);
^
0_0_13503263_9942.cpp:23:16: error: expected primary-expression before 'int'
vector<int> dp2(n, 0);
^
0_0_13503263_9942.cpp:27:24: error: 'dp' was not declared in this scope
cin >> dp[k];
^
0_0_13503263_9942.cpp:29:40: error: 'dp2' was not declared in this scope
dp[k] = max(dp[k], dp2[k - 1] + dp[k]);
^
0_0_13503263_9942.cpp:29:58: error: 'max' was not declared in this scope
dp[k] = max(dp[k], dp2[k - 1] + dp[k]);
^
0_0_13503263_9942.cpp:29:58: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_13503263_9942.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_13503263_9942.cpp:30:36: error: 'dp2' was not declared in this scope
dp[k] = max(dp[k], dp2[k] + dp[k]);
^
0_0_13503263_9942.cpp:30:50: error: 'max' was not declared in this scope
dp[k] = max(dp[k], dp2[k] + dp[k]);
^
0_0_13503263_9942.cpp:30:50: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_13503263_9942.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_13503263_9942.cpp:32:18: error: 'dp' was not declared in this scope
swap(dp, dp2);
^
0_0_13503263_9942.cpp:32:22: error: 'dp2' was not declared in this scope
swap(dp, dp2);
^
0_0_13503263_9942.cpp:32:25: error: 'swap' was not declared in this scope
swap(dp, dp2);
^
0_0_13503263_9942.cpp:32:25: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_13503263_9942.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:294:5: note: 'std::swap'
swap(stack<_Tp, _Seq>& __x, stack<_Tp, _Seq>& __y)
^
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++/new:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:33,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/c++allocator.h:33,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:46,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:62,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_13503263_9942.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_13503263_9942.cpp:34:9: error: 'cout' was not declared in this scope
cout << dp2[n - 1] << endl;
^
0_0_13503263_9942.cpp:34:9: note: suggested alternative:
In file included from 0_0_13503263_9942.cpp:9: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_13503263_9942.cpp:34:17: error: 'dp2' was not declared in this scope
cout << dp2[n - 1] << endl;
^
0_0_13503263_9942.cpp:34:31: error: 'endl' was not declared in this scope
cout << dp2[n - 1] << endl;
^
0_0_13503263_9942.cpp:34:31: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
from 0_0_13503263_9942.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^
|