0_0_39261540_25389.cpp: In function 'void sample12_6()':
0_0_39261540_25389.cpp:11:5: error: 'string' was not declared in this scope
11 | string a,b;
| ^~~~~~
0_0_39261540_25389.cpp:11:5: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iosfwd:41,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_39261540_25389.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:66:11: note: 'std::pmr::string'
66 | using string = basic_string<char>;
| ^~~~~~
0_0_39261540_25389.cpp:12:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
12 | while(cin>>a>>b){
| ^~~
| std::cin
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
0_0_39261540_25389.cpp:12:16: error: 'a' was not declared in this scope
12 | while(cin>>a>>b){
| ^
0_0_39261540_25389.cpp:12:19: error: 'b' was not declared in this scope
12 | while(cin>>a>>b){
| ^
0_0_39261540_25389.cpp:20:34: error: 'max' was not declared in this scope
20 | dp12_6[i][j]=max(dp12_6[i-1][j],dp12_6[i][j-1]);
| ^~~
0_0_39261540_25389.cpp:20:34: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:61,
from 0_0_39261540_25389.cpp:5:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:5805:5: note: 'std::max'
5805 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:2928:29: note: 'std::ranges::max'
2928 | inline constexpr __max_fn max{};
| ^~~
0_0_39261540_25389.cpp:24:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
24 | cout<<dp12_6[a.size()][b.size()]<<endl;
| ^~~~
| std::cout
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
0_0_39261540_25389.cpp:24:43: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
24 | cout<<dp12_6[a.size()][b.size()]<<endl;
| ^~~~
| std::endl
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:735:5: note: 'std::endl' declared here
735 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|