/ Vijos /

记录详情

Compile Error

/in/foo.c:2:1: error: unknown type name 'using'
 using namespace std;
 ^~~~~
/in/foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^~~
/in/foo.c:3:11: error: 'INT_MAX' undeclared here (not in a function)
 int n,ans=INT_MAX,f[205][40005],sum[205];
           ^~~~~~~
/in/foo.c:7:5: error: unknown type name 'bool'
     bool operator < (const Node &sjf) const {return b>sjf.b;}
     ^~~~
/in/foo.c:7:19: error: expected ':', ',', ';', '}' or '__attribute__' before '<' token
     bool operator < (const Node &sjf) const {return b>sjf.b;}
                   ^
/in/foo.c: In function 'read':
/in/foo.c:13:12: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration]
     while(!isdigit(ch)) ch=getchar();
            ^~~~~~~
/in/foo.c: In function 'main':
/in/foo.c:21:5: warning: implicit declaration of function 'sort' [-Wimplicit-function-declaration]
     sort(node+1,node+n+1);
     ^~~~
/in/foo.c:23:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
     memset(f,0x3f,sizeof f);
     ^~~~~~
/in/foo.c:23:5: warning: incompatible implicit declaration of built-in function 'memset'
/in/foo.c:23:5: note: include '<string.h>' or provide a declaration of 'memset'
/in/foo.c:28:38: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration]
             if(node[i].a<=j) f[i][j]=min(f[i][j],max(f[i-1][j-node[i].a],j+node[i].b));
                                      ^~~
/in/foo.c:28:50: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
             if(node[i].a<=j) f[i][j]=min(f[i][j],max(f[i-1][j-node[i].a],j+node[i].b));
                                                  ^~~

信息

递交者
类型
递交
题目
P1551 我是打饭的
语言
C
递交时间
2021-12-06 22:14:28
评测时间
2021-12-06 22:14:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes