/ Vijos /

记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1017 划分
语言
C++
递交时间
2020-09-26 19:19:58
评测时间
2020-09-26 19:19:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes