/ Vijos /

记录详情

Compile Error

foo.cc:8:20: error: 'VI' does not name a type
    8 | string expr, name; VI I;
      |                    ^~
foo.cc: In function 'void out(int)':
foo.cc:12:17: error: 'I' was not declared in this scope
   12 |     if (k == SZ(I)) cout << name;
      |                 ^
foo.cc:12:14: error: 'SZ' was not declared in this scope
   12 |     if (k == SZ(I)) cout << name;
      |              ^~
foo.cc: In function 'void gao(int, int, int)':
foo.cc:27:17: error: 'I' was not declared in this scope
   27 |     if (k == SZ(I)){
      |                 ^
foo.cc:27:14: error: 'SZ' was not declared in this scope
   27 |     if (k == SZ(I)){
      |              ^~
foo.cc:28:13: error: 'i' was not declared in this scope
   28 |         FOR(i,l,r)putchar(expr[i]);puts("");
      |             ^
foo.cc:28:9: error: 'FOR' was not declared in this scope
   28 |         FOR(i,l,r)putchar(expr[i]);puts("");
      |         ^~~
foo.cc:32:36: error: 'VII' was not declared in this scope
   32 |         int c=0;char op='(';int ll;VII cut;
      |                                    ^~~
foo.cc:33:13: error: 'i' was not declared in this scope
   33 |         FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
      |             ^
foo.cc:33:9: error: 'FOR' was not declared in this scope
   33 |         FOR(i,l,r) if(expr[i]=='('){if (!c++)ll=i+1;}
      |         ^~~
foo.cc:34:9: error: 'else' without a previous 'if'
   34 |         else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
      |         ^~~~
foo.cc:34:41: error: 'cut' was not declared in this scope; did you mean 'out'?
   34 |         else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
      |                                         ^~~
      |                                         out
foo.cc:34:48: error: 'MP' was not declared in this scope
   34 |         else if (expr[i]==')'){if (!--c)cut.PB(MP(ll,i));}
      |                                                ^~
foo.cc:39:39: error: 'cut' was not declared in this scope; did you mean 'out'?
   39 |             if (expr[l]=='(') gao(k+1,cut[I[k]].fi,cut[I[k]].se);
      |                                       ^~~
      |                                       out
foo.cc:43:16: error: expected ';' before 'cut'
   43 |             VII cut; FOR(i,l,r) if(expr[i]=='(')++c;
      |                ^~~~
      |                ;
foo.cc:44:13: error: 'else' without a previous 'if'
   44 |             else if (expr[i]==')')--c;
      |             ^~~~
foo.cc:46:39: error: 'cut' was not declared in this scope; did you mean 'out'?
   46 |                 if (f(expr[i])==f(op))cut.PB(MP(l,i)),l=i+1;
      |                                       ^~~
      |                                       out
foo.cc:46:46: error: 'MP' was not declared in this scope
   46 |                 if (f(expr[i])==f(op))cut.PB(MP(l,i)),l=i+1;
      |                                              ^~
foo.cc:48:13: error: 'cut' was not declared in this scope; did you mean 'out'?
   48 |             cut.PB(MP(l,r));
      |             ^~~
      |             out
foo.cc:48:20: error: 'MP' was not declared in this scope
   48 |             cut.PB(MP(l,r));
      |                    ^~
foo.cc:49:53: error: return-statement with a value, in function returning 'void' [-fpermissive]
   49 |             return gao(k+1,cut[I[k]].fi,cut[I[k]].se);
      |                                                     ^
foo.cc: In function 'int main()':
foo.cc:64:9: error: 'Rush' was not declared in this scope
   64 |         Rush{
      |         ^~~~
foo.cc:57:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   57 |     freopen("in.txt", "r", stdin);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1017 划分
语言
C++
递交时间
2022-05-08 00:01:28
评测时间
2022-05-08 00:01:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes