/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<iostream> include<cstdio> include<cstdlib> include<algorithm> include<cstring>
 ^
foo.cpp: In function 'int main()':
foo.cpp:7:25: error: 'memset' was not declared in this scope
 memset(f,-0x7f,sizeof(f));
                         ^
foo.cpp:8:1: error: 'cin' was not declared in this scope
 cin>>N;
 ^
foo.cpp:12:15: error: 'sort' was not declared in this scope
 sort(a+1,a+N+1);
               ^
foo.cpp:19:43: error: 'max' was not declared in this scope
             f[i][j]=max(f[i][j],f[i-1][h1]);
                                           ^
foo.cpp:23:48: error: 'max' was not declared in this scope
             f[i][j]=max(f[i][j],f[i-1][h2]+a[i]);
                                                ^
foo.cpp:27:46: error: 'max' was not declared in this scope
             f[i][j]=max(f[i][j],f[i-1][h3]+h3);
                                              ^
foo.cpp:31:42: error: 'max' was not declared in this scope
             f[i][j]=max(f[i][j],f[i-1][j]);
                                          ^
foo.cpp:35:5: error: 'cout' was not declared in this scope
     cout<<"Impossible";
     ^
foo.cpp:38:1: error: 'cout' was not declared in this scope
 cout<<f[N][0];
 ^

信息

递交者
类型
递交
题目
P1037 搭建双塔
语言
C++
递交时间
2016-04-07 13:49:40
评测时间
2016-04-07 13:49:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes