Main.cc:4:1: error: invalid use of template-name ‘std::vector’ without an argument list vector ans; ^~~~~~ Main.cc:4:1: note: class template argument deduction is only available with -std=c++1z or -std=gnu++1z In file included from /usr/include/c++/7/vector:64:0, from /usr/include/c++/7/queue:61, from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86, from Main.cc:1: /usr/include/c++/7/bits/stl_vector.h:216:11: note: ‘template class std::vector’ declared here class vector : protected _Vector_base<_Tp, _Alloc> ^~~~~~ Main.cc: In function ‘int main()’: Main.cc:10:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i=s[i+1] || (s[i-1]<58 && s[i+1]>96)) ans.push_back('-'); ^~~ Main.cc:17:56: note: suggested alternative: ‘abs’ if(s[i-1]>=s[i+1] || (s[i-1]<58 && s[i+1]>96)) ans.push_back('-'); ^~~ abs Main.cc:23:58: error: ‘ans’ was not declared in this scope for(int k=1;k<=(s[i+1]-s[i-1]-1)*p2;k++) ans.push_back('*'); ^~~ Main.cc:23:58: note: suggested alternative: ‘abs’ for(int k=1;k<=(s[i+1]-s[i-1]-1)*p2;k++) ans.push_back('*'); ^~~ abs Main.cc:31:29: error: ‘ans’ was not declared in this scope ans.push_back(char(k)); ^~~ Main.cc:31:29: note: suggested alternative: ‘abs’ ans.push_back(char(k)); ^~~ abs Main.cc:37:29: error: ‘ans’ was not declared in this scope ans.push_back(char(k)); ^~~ Main.cc:37:29: note: suggested alternative: ‘abs’ ans.push_back(char(k)); ^~~ abs Main.cc:48:33: error: ‘ans’ was not declared in this scope ans.push_back(char(k)); ^~~ Main.cc:48:33: note: suggested alternative: ‘abs’ ans.push_back(char(k)); ^~~ abs Main.cc:54:33: error: ‘ans’ was not declared in this scope ans.push_back(char(k)); ^~~ Main.cc:54:33: note: suggested alternative: ‘abs’ ans.push_back(char(k)); ^~~ abs Main.cc:63:33: error: ‘ans’ was not declared in this scope ans.push_back(char(k-32)); ^~~ Main.cc:63:33: note: suggested alternative: ‘abs’ ans.push_back(char(k-32)); ^~~ abs Main.cc:69:33: error: ‘ans’ was not declared in this scope ans.push_back(char(k-32)); ^~~ Main.cc:69:33: note: suggested alternative: ‘abs’ ans.push_back(char(k-32)); ^~~ abs Main.cc:76:15: error: ‘ans’ was not declared in this scope for(int i=0;i