/ 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:21: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:75:0,
                 from /in/foo.cc:3:
/usr/include/c++/6/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
/in/foo.cc:10:29: error: 'name' was not declared in this scope
     if (k == SZ(I)) cout << name;
                             ^~~~
/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: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:59:12: error: 'cin' was not declared in this scope
     while (cin >> expr){
            ^~~
/in/foo.cc:59:12: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:75:0,
                 from /in/foo.cc:3:
/usr/include/c++/6/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^~~
/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:62:9: error: 'Rush' was not declared in this scope
         Rush{
         ^~~~

信息

递交者
类型
递交
题目
P1017 划分
语言
C++
递交时间
2024-06-20 18:50:36
评测时间
2024-06-20 18:50:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes