ljetopica.cpp:7:16: error: conflicting declaration 'std::vector<std::__cxx11::basic_string<char> > S'
vector<string> S;
^
ljetopica.cpp:6:6: note: previous declaration as 'char S [1009]'
char S[1009], A[1009], B[1009];
^
ljetopica.cpp: In function 'void make(int, int, bool, int)':
ljetopica.cpp:13:11: error: request for member 'push_back' in 'S', which is of non-class type 'char [1009]'
S.push_back(stk);
^~~~~~~~~
ljetopica.cpp: In function 'int main()':
ljetopica.cpp:73:31: error: request for member 'size' in 'it', which is of non-class type 'char'
for(int i=0; i<it.size(); i++) {
^~~~
ljetopica.cpp:74:24: error: invalid types 'char[int]' for array subscript
if(it[i] == 'L') {
^
ljetopica.cpp:76:17: error: expected primary-expression before '}' token
}
^
ljetopica.cpp:72:25: warning: unused variable 'b' [-Wunused-variable]
bool a = 1, b = 1;
^
ljetopica.cpp:31:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int K; scanf("%d%d",&N,&K);
~~~~~^~~~~~~~~~~~~~
ljetopica.cpp:32:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s %s %s", S+1, A, B);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~