Main.cc: In function 'int main()':
Main.cc:28:5: error: 'vector' was not declared in this scope
28 | vector<Word> words;
| ^~~~~~
Main.cc:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
3 | #include<algorithm>
+++ |+#include <vector>
4 | using namespace std;
Main.cc:28:16: error: expected primary-expression before '>' token
28 | vector<Word> words;
| ^
Main.cc:28:18: error: 'words' was not declared in this scope
28 | vector<Word> words;
| ^~~~~
Main.cc:37:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for(int i=0;i<s.length()-1;i++){
| ~^~~~~~~~~~~~~