/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void tx()':
/in/foo.cc:5:20: error: 'n' was not declared in this scope
     for(int i=1;i<=n;i++)
                    ^
/in/foo.cc:6:10: error: 'a2' was not declared in this scope
     sum+=a2[i];
          ^~
/in/foo.cc:7:20: error: 'm' was not declared in this scope
     for(int i=1;i<=m;i++)
                    ^
/in/foo.cc:8:12: error: 'b2' was not declared in this scope
     if(sum-b2[i]>=0) {
            ^~
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:17:5: error: 'tot' was not declared in this scope
     tot=max(tot,x);
     ^~~
/in/foo.cc:18:10: error: 'm' was not declared in this scope
     if(x>m) return ;
          ^
/in/foo.cc:19:8: error: 'cnt' was not declared in this scope
     if(cnt>25000000){  
        ^~~
/in/foo.cc:23:20: error: 'n' was not declared in this scope
     for(int i=1;i<=n;++i){
                    ^
/in/foo.cc:24:12: error: 'a' was not declared in this scope
         if(a[i]>=b[x]){
            ^
/in/foo.cc:24:18: error: 'b' was not declared in this scope
         if(a[i]>=b[x]){
                  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:9: error: 'n' was not declared in this scope
    cin>>n;
         ^
/in/foo.cc:34:30: error: 'a' was not declared in this scope
    for(int i=1;i<=n;i++)cin>>a[i];
                              ^
/in/foo.cc:35:9: error: 'm' was not declared in this scope
    cin>>m; 
         ^
/in/foo.cc:36:31: error: 'b' was not declared in this scope
    for(int i=1;i<=m;i++) cin>>b[i];
                               ^
/in/foo.cc:37:9: error: 'b' was not declared in this scope
    sort(b+1,b+m+1);
         ^
/in/foo.cc:39:17: error: 'tot' was not declared in this scope
    dfs(1);cout<<tot-1;
                 ^~~

信息

递交者
类型
递交
题目
P1189 栅栏
语言
C++
递交时间
2018-10-19 07:00:53
评测时间
2018-10-19 07:00:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes