cubeword.cpp:14:16: error: conflicting declaration 'std::vector<std::__cxx11::basic_string<char> > S'
vector<string> S, T[15];
^
cubeword.cpp:9:11: note: previous declaration as 'const int S'
const int S = 6;
^
cubeword.cpp: In function 'int main()':
cubeword.cpp:35:5: error: request for member 'push_back' in 'S', which is of non-class type 'const int'
S.push_back(s);
^~~~~~~~~
cubeword.cpp:36:5: error: request for member 'push_back' in 'S', which is of non-class type 'const int'
S.push_back(t);
^~~~~~~~~
cubeword.cpp:39:9: error: request for member 'begin' in 'S', which is of non-class type 'const int'
sort(S.begin(), S.end());
^~~~~
cubeword.cpp:39:20: error: request for member 'end' in 'S', which is of non-class type 'const int'
sort(S.begin(), S.end());
^~~
cubeword.cpp:40:4: error: request for member 'erase' in 'S', which is of non-class type 'const int'
S.erase(unique(S.begin(), S.end()), S.end());
^~~~~
cubeword.cpp:40:19: error: request for member 'begin' in 'S', which is of non-class type 'const int'
S.erase(unique(S.begin(), S.end()), S.end());
^~~~~
cubeword.cpp:40:30: error: request for member 'end' in 'S', which is of non-class type 'const int'
S.erase(unique(S.begin(), S.end()), S.end());
^~~
cubeword.cpp:40:40: error: request for member 'end' in 'S', which is of non-class type 'const int'
S.erase(unique(S.begin(), S.end()), S.end());
^~~
cubeword.cpp:42:15: error: request for member 'size' in 'S', which is of non-class type 'const int'
for(i=0; i<S.size(); i++) T[S[i].size()].push_back(S[i]);
^~~~
cubeword.cpp:42:33: error: invalid types 'const int[int]' for array subscript
for(i=0; i<S.size(); i++) T[S[i].size()].push_back(S[i]);
^
cubeword.cpp:42:56: error: invalid types 'const int[int]' for array subscript
for(i=0; i<S.size(); i++) T[S[i].size()].push_back(S[i]);
^
cubeword.cpp:51:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<V.size(); i++) cnt[convert(V[i][0])][convert(V[i][V[i].size()-1])]++;
~^~~~~~~~~
cubeword.cpp: In function 'int convert(char)':
cubeword.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^