/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int dfs(int, int)':
/in/foo.cc:11:61: error: 'max' was not declared in this scope
             ret=max(ret, dfs(lson[u], i)+dfs(rson[u], x-i-1));
                                                             ^
/in/foo.cc:13:33: error: 'max' was not declared in this scope
     ret=max(ret, dfs(rson[u], x));     //不选u
                                 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:19:28: error: 'memset' was not declared in this scope
     memset(f, -1, sizeof(f));
                            ^
/in/foo.cc:22:15: error: 'cin' was not declared in this scope
     int n, m; cin>>n>>m;
               ^~~
/in/foo.cc:29:5: error: 'cout' was not declared in this scope
     cout<<dfs(lson[0], m)<<endl;        //lson[0]是根
     ^~~~
/in/foo.cc:29:28: error: 'endl' was not declared in this scope
     cout<<dfs(lson[0], m)<<endl;        //lson[0]是根
                            ^~~~

信息

递交者
类型
递交
题目
P1180 选课
语言
C++
递交时间
2020-09-22 01:11:24
评测时间
2020-09-22 01:11:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes