运行 ID: 122013

Main.cc:2:36: error: invalid use of template-name ‘std::vector’ without an argument list
 using namespace std; int p1,p2,p3; vector ans; string s; int main() {
                                    ^~~~~~
Main.cc:2:36: 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:5: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:12: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:18: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:18: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:26:29: error: ‘ans’ was not declared in this scope
                             ans.push_back(char(k));
                             ^~~
Main.cc:26:29: note: suggested alternative: ‘abs’
                             ans.push_back(char(k));
                             ^~~
                             abs
Main.cc:32:29: error: ‘ans’ was not declared in this scope
                             ans.push_back(char(k));                        
                             ^~~
Main.cc:32:29: note: suggested alternative: ‘abs’
                             ans.push_back(char(k));                        
                             ^~~
                             abs
Main.cc:43:33: error: ‘ans’ was not declared in this scope
                                 ans.push_back(char(k));                            
                                 ^~~
Main.cc:43:33: note: suggested alternative: ‘abs’
                                 ans.push_back(char(k));                            
                                 ^~~
                                 abs
Main.cc:49:33: error: ‘ans’ was not declared in this scope
                                 ans.push_back(char(k));                                
                                 ^~~
Main.cc:49:33: note: suggested alternative: ‘abs’
                                 ans.push_back(char(k));                                
                                 ^~~
                                 abs
Main.cc:58:33: error: ‘ans’ was not declared in this scope
                                 ans.push_back(char(k-32));                                
                                 ^~~
Main.cc:58:33: note: suggested alternative: ‘abs’
                                 ans.push_back(char(k-32));                                
                                 ^~~
                                 abs
Main.cc:64:33: error: ‘ans’ was not declared in this scope
                                 ans.push_back(char(k-32));                                
                                 ^~~
Main.cc:64:33: note: suggested alternative: ‘abs’
                                 ans.push_back(char(k-32));                                
                                 ^~~
                                 abs
Main.cc:71:15: error: ‘ans’ was not declared in this scope
 for(int i=0;i