/in/foo.cc:3:1: error: 'string' does not name a type
string expr, name; VI I;
^~~~~~
/in/foo.cc:3:20: error: 'VI' does not name a type
string expr, name; VI I;
^~
/in/foo.cc: In function 'void out(int)':
/in/foo.cc:7:17: error: 'I' was not declared in this scope
if (k == SZ(I)) cout << name;
^
/in/foo.cc:7:18: error: 'SZ' was not declared in this scope
if (k == SZ(I)) cout << name;
^
/in/foo.cc:7:21: error: 'cout' was not declared in this scope
if (k == SZ(I)) cout << name;
^~~~
/in/foo.cc:7:29: error: 'name' was not declared in this scope
if (k == SZ(I)) cout << name;
^~~~
/in/foo.cc:9:29: error: 'printf' was not declared in this scope
printf("op(%d,",I[k]);out(k+1);printf(")");
^
/in/foo.cc: In function 'void gao(int, int, int)':
/in/foo.cc:22:17: error: 'I' was not declared in this scope
if (k == SZ(I)){
^
/in/foo.cc:22:18: error: 'SZ' was not declared in this scope
if (k == SZ(I)){
^
/in/foo.cc:23:13: error: 'i' was not declared in this scope
FOR(i,l,r)putchar(expr[i]);puts("");
^
/in/foo.cc:23:18: error: 'FOR' was not declared in this scope
FOR(i,l,r)putchar(expr[i]);puts("");
^
/in/foo.cc:23:43: error: 'puts' was not declared in this scope
FOR(i,l,r)putchar(expr[i]);puts("");
^
/in/foo.cc:27:36: error: 'VII' was not declared in this scope
int c=0;char op='(';int ll;VII cut;
^~~
/in/foo.cc:28:13: error: 'i' was not declared in this scope
FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
^
/in/foo.cc:28:18: error: 'FOR' was not declared in this scope
FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
^
/in/foo.cc:29:9: error: 'else' without a previous 'if'
else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
^~~~
/in/foo.cc:29:18: error: 'expr' was not declared in this scope
else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
^~~~
/in/foo.cc:29:41: error: 'cut' was not declared in this scope
else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
^~~
/in/foo.cc:29:55: error: 'MP' was not declared in this scope
else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
^
/in/foo.cc:34:17: error: 'expr' was not declared in this scope
if (expr[l]=='(') gao(k+1,cut[I[k]].fi,cut[I[k]].se);
^~~~
/in/foo.cc:34:39: error: 'cut' was not declared in this scope
if (expr[l]=='(') gao(k+1,cut[I[k]].fi,cut[I[k]].se);
^~~
/in/foo.cc:38:17: error: expected ';' before 'cut'
VII cut; FOR(i,l,r) if(expr[i]=='(')++c;
^~~
/in/foo.cc:39:13: error: 'else' without a previous 'if'
else if (expr[i]==')')--c;
^~~~
/in/foo.cc:39:22: error: 'expr' was not declared in this scope
else if (expr[i]==')')--c;
^~~~
/in/foo.cc:41:39: error: 'cut' was not declared in this scope
if (f(expr[i])==f(op))cut.PB(MP(l,i)),l=i+1;
^~~
/in/foo.cc:41:52: error: 'MP' was not declared in this scope
if (f(expr[i])==f(op))cut.PB(MP(l,i)),l=i+1;
^
/in/foo.cc:43:13: error: 'cut' was not declared in this scope
cut.PB(MP(l,r));
^~~
/in/foo.cc:43:26: error: 'MP' was not declared in this scope
cut.PB(MP(l,r));
^
/in/foo.cc:44:53: error: return-statement with a value, in function returning 'void' [-fpermissive]
return gao(k+1,cut[I[k]].fi,cut[I[k]].se);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:52:28: error: 'stdin' was not declared in this scope
freopen("in.txt", "r", stdin);
^~~~~
/in/foo.cc:52:33: error: 'freopen' was not declared in this scope
freopen("in.txt", "r", stdin);
^
/in/foo.cc:56:12: error: 'cin' was not declared in this scope
while (cin >> expr){
^~~
/in/foo.cc:56:19: error: 'expr' was not declared in this scope
while (cin >> expr){
^~~~
/in/foo.cc:57:34: error: 'name' was not declared in this scope
int p = expr.find(":="); name = expr.substr(0,p).c_str();
^~~~
/in/foo.cc:58:47: error: 'printf' was not declared in this scope
printf("Expression %s:\n",name.c_str());expr.erase(expr.begin(),expr.begin()+p+2);
^
/in/foo.cc:59:9: error: 'Rush' was not declared in this scope
Rush{
^~~~