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