/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:25:36: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     for (int i = h[u], v; v = tto[i]; i = nxt[i]) {
                                    ^
/in/foo.cc: In function 'int bfs()':
/in/foo.cc:43:31: error: 'memset' was not declared in this scope
     memset(vis, 0, sizeof(vis));
                               ^
/in/foo.cc:66:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < vec.size(); i++) {
                         ~~^~~~~~~~~~~~
/in/foo.cc:68:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
             for (int j = h[u], v; v = tto[j]; j = nxt[j]) {
                                            ^

信息

递交者
类型
递交
题目
P1101 传染病防治
语言
C++
递交时间
2024-09-14 17:40:36
评测时间
2024-09-14 17:40:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes