answer.code:13:49: error: use of ‘auto’ in parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’
13 | bool Paint(const int n,const int m,const char c,auto&Op){
| ^~~~
answer.code: In function ‘bool Paint(int, int, char, int&)’:
answer.code:14:31: error: cannot convert ‘int’ to ‘std::vector<std::__cxx11::basic_string<char> >&’
14 | vector<string>().swap(Op);
| ^~
| |
| int
In file included from /usr/include/c++/13/vector:66,
from answer.code:3:
/usr/include/c++/13/bits/stl_vector.h:1583:20: note: initializing argument 1 of ‘void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]’
1583 | swap(vector& __x) _GLIBCXX_NOEXCEPT
| ~~~~~~~~^~~
answer.code:61:28: error: request for member ‘push_back’ in ‘Op’, which is of non-class type ‘int’
61 | Op.push_back(Cur);
| ^~~~~~~~~
answer.code:80:20: error: request for member ‘push_back’ in ‘Op’, which is of non-class type ‘int’
80 | Op.push_back(A);
| ^~~~~~~~~
answer.code: In function ‘void Solve()’:
answer.code:88:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[201]’ [-Wformat=]
88 | scanf("%s",C+i);
| ~^ ~~~
| | |
| | char (*)[201]
| char*
answer.code:91:26: error: invalid initialization of reference of type ‘int&’ from expression of type ‘std::vector<std::__cxx11::basic_string<char> >’
91 | if(Paint(n,m,'W',Op)==false){
| ^~
answer.code:13:54: note: in passing argument 4 of ‘bool Paint(int, int, char, int&)’
13 | bool Paint(const int n,const int m,const char c,auto&Op){
| ~~~~~^~
answer.code:92:34: error: invalid initialization of reference of type ‘int&’ from expression of type ‘std::vector<std::__cxx11::basic_string<char> >’
92 | if(Paint(n,m,'B',Op)==false){
| ^~
answer.code:13:54: note: in passing argument 4 of ‘bool Paint(int, int, char, int&)’
13 | bool Paint(const int n,const int m,const char c,auto&Op){
| ~~~~~^~
answer.code:86:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
86 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
answer.code:88:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
88 | scanf("%s",C+i);
| ~~~~~^~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:104:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
104 | scanf("%d",&t);
| ~~~~~^~~~~~~~~