/ Vijos /

记录详情

Compile Error

/in/foo.cc:4:1: error: 'string' does not name a type
 string expr, name; VI I;
 ^~~~~~
/in/foo.cc:4:20: error: 'VI' does not name a type
 string expr, name; VI I;
                    ^~
/in/foo.cc: In function 'void out(int)':
/in/foo.cc:8:17: error: 'I' was not declared in this scope
     if (k == SZ(I)) cout << name;
                 ^
/in/foo.cc:8:18: error: 'SZ' was not declared in this scope
     if (k == SZ(I)) cout << name;
                  ^
/in/foo.cc:8:21: error: 'cout' was not declared in this scope
     if (k == SZ(I)) cout << name;
                     ^~~~
/in/foo.cc:8:29: error: 'name' was not declared in this scope
     if (k == SZ(I)) cout << name;
                             ^~~~
/in/foo.cc:10: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:23:17: error: 'I' was not declared in this scope
     if (k == SZ(I)){
                 ^
/in/foo.cc:23:18: error: 'SZ' was not declared in this scope
     if (k == SZ(I)){
                  ^
/in/foo.cc:24:13: error: 'i' was not declared in this scope
         FOR(i,l,r)putchar(expr[i]);puts("");
             ^
/in/foo.cc:24:18: error: 'FOR' was not declared in this scope
         FOR(i,l,r)putchar(expr[i]);puts("");
                  ^
/in/foo.cc:24:43: error: 'puts' was not declared in this scope
         FOR(i,l,r)putchar(expr[i]);puts("");
                                           ^
/in/foo.cc:28:36: error: 'VII' was not declared in this scope
         int c=0;char op='(';int ll;VII cut;
                                    ^~~
/in/foo.cc:29:13: error: 'i' was not declared in this scope
         FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
             ^
/in/foo.cc:29:18: error: 'FOR' was not declared in this scope
         FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
                  ^
/in/foo.cc:30:9: error: 'else' without a previous 'if'
         else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
         ^~~~
/in/foo.cc:30:18: error: 'expr' was not declared in this scope
         else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
                  ^~~~
/in/foo.cc:30:41: error: 'cut' was not declared in this scope
         else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
                                         ^~~
/in/foo.cc:30:55: error: 'MP' was not declared in this scope
         else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
                                                       ^
/in/foo.cc:35: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:35: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:39:17: error: expected ';' before 'cut'
             VII cut; FOR(i,l,r) if(expr[i]=='(')++c;
                 ^~~
/in/foo.cc:40:13: error: 'else' without a previous 'if'
             else if (expr[i]==')')--c;
             ^~~~
/in/foo.cc:40:22: error: 'expr' was not declared in this scope
             else if (expr[i]==')')--c;
                      ^~~~
/in/foo.cc:42: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:42: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:44:13: error: 'cut' was not declared in this scope
             cut.PB(MP(l,r));
             ^~~
/in/foo.cc:44:26: error: 'MP' was not declared in this scope
             cut.PB(MP(l,r));
                          ^
/in/foo.cc:45: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:53:28: error: 'stdin' was not declared in this scope
     freopen("in.txt", "r", stdin);
                            ^~~~~
/in/foo.cc:53:33: error: 'freopen' was not declared in this scope
     freopen("in.txt", "r", stdin);
                                 ^
/in/foo.cc:57:12: error: 'cin' was not declared in this scope
     while (cin >> expr){
            ^~~
/in/foo.cc:57:19: error: 'expr' was not declared in this scope
     while (cin >> expr){
                   ^~~~
/in/foo.cc:58:34: error: 'name' was not declared in this scope
         int p = expr.find(":="); name = expr.substr(0,p).c_str();
                                  ^~~~
/in/foo.cc:59: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:60:9: error: 'Rush' was not declared in this scope
         Rush{
         ^~~~

信息

递交者
类型
递交
题目
P1017 划分
语言
C++
递交时间
2018-07-30 16:22:04
评测时间
2018-07-30 16:22:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes