记录详情

Compile Error

/in/foo.cc:6:1: error: expected initializer before 'long'
 long long  ans=0;
 ^~~~
/in/foo.cc: In function 'void init()':
/in/foo.cc:27:3: error: 'ans' was not declared in this scope
   ans+=a[i].w;
   ^~~
/in/foo.cc:31:3: error: 'cnt' was not declared in this scope
   cnt[i]=1;f[i]=i;
   ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:47:4: error: 'ans' was not declared in this scope
    ans+=(cnt[s]*cnt[t]-1)*(a[i].w+1) ;
    ^~~
/in/foo.cc:47:10: error: 'cnt' was not declared in this scope
    ans+=(cnt[s]*cnt[t]-1)*(a[i].w+1) ;
          ^~~
/in/foo.cc:52:10: error: 'ans' was not declared in this scope
    cout<<ans<<endl;
          ^~~

信息

递交者
类型
递交
题目
构造完全图
题目数据
下载
语言
C++
递交时间
2019-04-17 10:21:32
评测时间
2019-04-17 10:21:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes