/ :-) /

记录详情

Compile Error

/in/foo.cc:5:1: error: expected ',' or ';' before 'int'
 int f[maxn],v[maxn],n,P;
 ^~~
/in/foo.cc: In function 'int dp(int)':
/in/foo.cc:8:11: error: 'f' was not declared in this scope
  int &rec=f[cur];
           ^
/in/foo.cc:11:17: error: 'n' was not declared in this scope
  for(int i=1;i<=n;i++)
                 ^
/in/foo.cc:12:11: error: 'v' was not declared in this scope
    if(cur+v[i]<=P)
           ^
/in/foo.cc:12:17: error: 'P' was not declared in this scope
    if(cur+v[i]<=P)
                 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:17:16: error: 'n' was not declared in this scope
  scanf("%d%d",&n,&P);
                ^
/in/foo.cc:17:19: error: 'P' was not declared in this scope
  scanf("%d%d",&n,&P);
                   ^
/in/foo.cc:19:16: error: 'v' was not declared in this scope
    scanf("%d",&v[i]);
                ^
/in/foo.cc:21:25: error: 'f' was not declared in this scope
  if(vis[P]) printf("%d",f[0]);
                         ^

信息

递交者
类型
递交
题目
找茬
语言
C++
递交时间
2018-10-19 22:44:37
评测时间
2018-10-19 22:44:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes