/ Vijos /

记录详情

Compile Error

foo.cpp:7:7: error: 'maxn' does not name a type
 const maxn=10000+5;
       ^
foo.cpp:8:7: error: 'maxn' was not declared in this scope
 int a[maxn];
       ^
foo.cpp: In function 'void heap(int, int)':
foo.cpp:15:11: error: 'a' was not declared in this scope
   if(i<n&&a[i]>a[i+1])i++;
           ^
foo.cpp:16:6: error: 'a' was not declared in this scope
   if(a[i]<a[i/2])swap(a[i],a[i/2]);
      ^
foo.cpp: In function 'int main()':
foo.cpp:25:28: error: 'a' was not declared in this scope
  for(int i=1;i<=n;i++)cin>>a[i];
                            ^
foo.cpp:27:10: error: 'a' was not declared in this scope
  int ans=a[1];
          ^

信息

递交者
类型
递交
题目
P1097 合并果子
语言
C++
递交时间
2016-01-22 16:08:55
评测时间
2016-01-22 16:09:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes