foo.cc:6:1: error: 'string' does not name a type; did you mean 'struct'?
string expr, name; VI I;
^~~~~~
struct
foo.cc:6:20: error: 'VI' does not name a type
string expr, name; VI I;
^~
foo.cc: In function 'void out(int)':
foo.cc:10:17: error: 'I' was not declared in this scope
if (k == SZ(I)) cout << name;
^
foo.cc:10:14: error: 'SZ' was not declared in this scope
if (k == SZ(I)) cout << name;
^~
foo.cc:10:21: error: 'cout' was not declared in this scope
if (k == SZ(I)) cout << name;
^~~~
foo.cc:10:21: note: suggested alternative: 'out'
if (k == SZ(I)) cout << name;
^~~~
out
foo.cc:10:29: error: 'name' was not declared in this scope
if (k == SZ(I)) cout << name;
^~~~
foo.cc:12:9: error: 'printf' was not declared in this scope
printf("op(%d,",I[k]);out(k+1);printf(")");
^~~~~~
foo.cc:12:9: note: suggested alternative: 'int'
printf("op(%d,",I[k]);out(k+1);printf(")");
^~~~~~
int
foo.cc: In function 'void gao(int, int, int)':
foo.cc:25:17: error: 'I' was not declared in this scope
if (k == SZ(I)){
^
foo.cc:25:14: error: 'SZ' was not declared in this scope
if (k == SZ(I)){
^~
foo.cc:26:13: error: 'i' was not declared in this scope
FOR(i,l,r)putchar(expr[i]);puts("");
^
foo.cc:26:9: error: 'FOR' was not declared in this scope
FOR(i,l,r)putchar(expr[i]);puts("");
^~~
foo.cc:26:36: error: 'puts' was not declared in this scope
FOR(i,l,r)putchar(expr[i]);puts("");
^~~~
foo.cc:26:36: note: suggested alternative: 'out'
FOR(i,l,r)putchar(expr[i]);puts("");
^~~~
out
foo.cc:30:36: error: 'VII' was not declared in this scope
int c=0;char op='(';int ll;VII cut;
^~~
foo.cc:31:13: error: 'i' was not declared in this scope
FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
^
foo.cc:31:9: error: 'FOR' was not declared in this scope
FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
^~~
foo.cc:32:9: error: 'else' without a previous 'if'
else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
^~~~
foo.cc:32:18: error: 'expr' was not declared in this scope
else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
^~~~
foo.cc:32:41: error: 'cut' was not declared in this scope
else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
^~~
foo.cc:32:41: note: suggested alternative: 'out'
else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
^~~
out
foo.cc:32:48: error: 'MP' was not declared in this scope
else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
^~
foo.cc:37:17: error: 'expr' was not declared in this scope
if (expr[l]=='(') gao(k+1,cut[I[k]].fi,cut[I[k]].se);
^~~~
foo.cc:37:39: error: 'cut' was not declared in this scope
if (expr[l]=='(') gao(k+1,cut[I[k]].fi,cut[I[k]].se);
^~~
foo.cc:37:39: note: suggested alternative: 'out'
if (expr[l]=='(') gao(k+1,cut[I[k]].fi,cut[I[k]].se);
^~~
out
foo.cc:41:17: error: expected ';' before 'cut'
VII cut; FOR(i,l,r) if(expr[i]=='(')++c;
^~~
foo.cc:42:13: error: 'else' without a previous 'if'
else if (expr[i]==')')--c;
^~~~
foo.cc:42:22: error: 'expr' was not declared in this scope
else if (expr[i]==')')--c;
^~~~
foo.cc:44:39: error: 'cut' was not declared in this scope
if (f(expr[i])==f(op))cut.PB(MP(l,i)),l=i+1;
^~~
foo.cc:44:39: note: suggested alternative: 'out'
if (f(expr[i])==f(op))cut.PB(MP(l,i)),l=i+1;
^~~
out
foo.cc:44:46: error: 'MP' was not declared in this scope
if (f(expr[i])==f(op))cut.PB(MP(l,i)),l=i+1;
^~
foo.cc:46:13: error: 'cut' was not declared in this scope
cut.PB(MP(l,r));
^~~
foo.cc:46:13: note: suggested alternative: 'out'
cut.PB(MP(l,r));
^~~
out
foo.cc:46:20: error: 'MP' was not declared in this scope
cut.PB(MP(l,r));
^~
foo.cc:47:53: error: return-statement with a value, in function returning 'void' [-fpermissive]
return gao(k+1,cut[I[k]].fi,cut[I[k]].se);
^
foo.cc: In function 'int main()':
foo.cc:55:28: error: 'stdin' was not declared in this scope
freopen("in.txt", "r", stdin);
^~~~~
foo.cc:55:5: error: 'freopen' was not declared in this scope
freopen("in.txt", "r", stdin);
^~~~~~~
foo.cc:59:12: error: 'cin' was not declared in this scope
while (cin >> expr){
^~~
foo.cc:59:12: note: suggested alternative: 'main'
while (cin >> expr){
^~~
main
foo.cc:59:19: error: 'expr' was not declared in this scope
while (cin >> expr){
^~~~
foo.cc:60:34: error: 'name' was not declared in this scope
int p = expr.find(":="); name = expr.substr(0,p).c_str();
^~~~
foo.cc:61:9: error: 'printf' was not declared in this scope
printf("Expression %s:\n",name.c_str());expr.erase(expr.begin(),expr.begin()+p+2);
^~~~~~
foo.cc:61:9: note: suggested alternative: 'int'
printf("Expression %s:\n",name.c_str());expr.erase(expr.begin(),expr.begin()+p+2);
^~~~~~
int
foo.cc:62:9: error: 'Rush' was not declared in this scope
Rush{
^~~~
[Hydro](https://hydro.ac)提供评测服务