运行 ID: 121367

Main.cc:1:1: error: ‘include’ does not name a type; did you mean ‘__has_include’?
 include 
 ^~~~~~~
 __has_include
Main.cc:2:36: error: ‘vector’ does not name a type
 using namespace std; int p1,p2,p3; vector ans; string s; int main() {
                                    ^~~~~~
Main.cc:2:48: error: ‘string’ does not name a type; did you mean ‘struct’?
 using namespace std; int p1,p2,p3; vector ans; string s; int main() {
                                                ^~~~~~
                                                struct
Main.cc: In function ‘int main()’:
Main.cc:4:1: error: ‘cin’ was not declared in this scope
 cin >> p1 >> p2 >> p3 >> s;
 ^~~
Main.cc:4:1: note: suggested alternative: ‘main’
 cin >> p1 >> p2 >> p3 >> s;
 ^~~
 main
Main.cc:4:26: error: ‘s’ was not declared in this scope
 cin >> p1 >> p2 >> p3 >> s;
                          ^
Main.cc:7:19: error: ‘ans’ was not declared in this scope
     if(s[i]!='-') ans.push_back(s[i]);
                   ^~~
Main.cc:8:52: error: ‘ans’ was not declared in this scope
     else if((i==0 || i==s.size()-1) && s[i]=='-' ) ans.push_back('-');
                                                    ^~~
Main.cc:9:56: error: ‘ans’ was not declared in this scope
     else if(s[i]=='-' && (s[i-1]=='-' || s[i+1]=='-')) ans.push_back('-');
                                                        ^~~
Main.cc:12:56: error: ‘ans’ was not declared in this scope
         if(s[i-1]>=s[i+1] || (s[i-1]<58 && s[i+1]>96)) ans.push_back('-');
                                                        ^~~
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:26:29: error: ‘ans’ was not declared in this scope
                             ans.push_back(char(k));
                             ^~~
Main.cc:32:29: error: ‘ans’ was not declared in this scope
                             ans.push_back(char(k));                        
                             ^~~
Main.cc:43:33: error: ‘ans’ was not declared in this scope
                                 ans.push_back(char(k));                            
                                 ^~~
Main.cc:49:33: error: ‘ans’ was not declared in this scope
                                 ans.push_back(char(k));                                
                                 ^~~
Main.cc:58:33: error: ‘ans’ was not declared in this scope
                                 ans.push_back(char(k-32));                                
                                 ^~~
Main.cc:64:33: error: ‘ans’ was not declared in this scope
                                 ans.push_back(char(k-32));                                
                                 ^~~
Main.cc:71:15: error: ‘ans’ was not declared in this scope
 for(int i=0;i