/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<iostream> include<cstdio> include<cstdlib> include<cmath> include<algorithm> include<fstream>
 ^
foo.cpp: In function 'int read()':
foo.cpp:4:29: error: 'getchar' was not declared in this scope
 int x=0,f=1;char ch=getchar();
                             ^
foo.cpp:6:27: error: 'x10' was not declared in this scope
 while(ch>='0'&&ch<='9'){x=x10+ch-'0';ch=getchar();}
                           ^
foo.cpp:7:8: error: 'xf' was not declared in this scope
 return xf;
        ^
foo.cpp: In function 'int main()':
foo.cpp:44:43: error: 'max' was not declared in this scope
 f[zhu][v]=max(f[zhu][v],f[zhu][v-jian]+jia);
                                           ^
foo.cpp:55:57: error: 'max' was not declared in this scope
 ans[v]=max(ans[v],ans[v-k-th[zhu].v]+f[zhu][k]+th[zhu].c);
                                                         ^
foo.cpp:60:1: error: 'cout' was not declared in this scope
 cout<<ans[N];
 ^
foo.cpp: In function 'int read()':
foo.cpp:8:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1313 金明的预算方案
语言
C++
递交时间
2016-08-20 09:44:01
评测时间
2016-08-20 09:44:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes