/ Vijos /

记录详情

Compile Error

foo.cpp:3:1: error: expected class-name before 'const'
 const int N = int(1e5) + 9;
 ^
foo.cpp:4:1: error: 'string' does not name a type
 string expr, name; VI I;
 ^
foo.cpp:4:20: error: 'VI' does not name a type
 string expr, name; VI I;
                    ^
foo.cpp: In function 'void out(int)':
foo.cpp:7:13: error: 'I' was not declared in this scope
 if (k == SZ(I)) cout << name; else{ printf("op(%d,",I[k]);out(k+1);printf(")"); } }
             ^
foo.cpp:7:14: error: 'SZ' was not declared in this scope
 if (k == SZ(I)) cout << name; else{ printf("op(%d,",I[k]);out(k+1);printf(")"); } }
              ^
foo.cpp:7:17: error: 'cout' was not declared in this scope
 if (k == SZ(I)) cout << name; else{ printf("op(%d,",I[k]);out(k+1);printf(")"); } }
                 ^
foo.cpp:7:25: error: 'name' was not declared in this scope
 if (k == SZ(I)) cout << name; else{ printf("op(%d,",I[k]);out(k+1);printf(")"); } }
                         ^
foo.cpp:7:57: error: 'printf' was not declared in this scope
 if (k == SZ(I)) cout << name; else{ printf("op(%d,",I[k]);out(k+1);printf(")"); } }
                                                         ^
foo.cpp: In function 'void gao(int, int, int)':
foo.cpp:11:13: error: 'I' was not declared in this scope
 if (k == SZ(I)){ FOR(i,l,r)putchar(expr[i]);puts(""); } else{
             ^
foo.cpp:11:14: error: 'SZ' was not declared in this scope
 if (k == SZ(I)){ FOR(i,l,r)putchar(expr[i]);puts(""); } else{
              ^
foo.cpp:11:22: error: 'i' was not declared in this scope
 if (k == SZ(I)){ FOR(i,l,r)putchar(expr[i]);puts(""); } else{
                      ^
foo.cpp:11:27: error: 'FOR' was not declared in this scope
 if (k == SZ(I)){ FOR(i,l,r)putchar(expr[i]);puts(""); } else{
                           ^
foo.cpp:11:52: error: 'puts' was not declared in this scope
 if (k == SZ(I)){ FOR(i,l,r)putchar(expr[i]);puts(""); } else{
                                                    ^
foo.cpp:12:32: error: 'VII' was not declared in this scope
     int c=0;char op='(';int ll;VII cut;
                                ^
foo.cpp:13:9: error: 'i' was not declared in this scope
     FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
         ^
foo.cpp:13:14: error: 'FOR' was not declared in this scope
     FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
              ^
foo.cpp:14:5: error: 'else' without a previous 'if'
     else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
     ^
foo.cpp:14:14: error: 'expr' was not declared in this scope
     else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
              ^
foo.cpp:14:37: error: 'cut' was not declared in this scope
     else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
                                     ^
foo.cpp:14:51: error: 'MP' was not declared in this scope
     else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
                                                   ^
foo.cpp:19:13: error: 'expr' was not declared in this scope
         if (expr[l]=='(') gao(k+1,cut[I[k]].fi,cut[I[k]].se);
             ^
foo.cpp:19:35: error: 'cut' was not declared in this scope
         if (expr[l]=='(') gao(k+1,cut[I[k]].fi,cut[I[k]].se);
                                   ^
foo.cpp:23:13: error: expected ';' before 'cut'
         VII cut; FOR(i,l,r) if(expr[i]=='(')++c;
             ^
foo.cpp:24:9: error: 'else' without a previous 'if'
         else if (expr[i]==')')--c;
         ^
foo.cpp:24:18: error: 'expr' was not declared in this scope
         else if (expr[i]==')')--c;
                  ^
foo.cpp:26:35: error: 'cut' was not declared in this scope
             if (f(expr[i])==f(op))cut.PB(MP(l,i)),l=i+1;
                                   ^
foo.cpp:26:48: error: 'MP' was not declared in this scope
             if (f(expr[i])==f(op))cut.PB(MP(l,i)),l=i+1;
                                                ^
foo.cpp:28:9: error: 'cut' was not declared in this scope
         cut.PB(MP(l,r));
         ^
foo.cpp:28:22: error: 'MP' was not declared in this scope
         cut.PB(MP(l,

信息

递交者
类型
递交
题目
P1017 划分
语言
C++
递交时间
2015-04-16 21:03:48
评测时间
2015-04-16 21:03:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes