/ Vijos /

记录详情

Compile Error

foo.cpp: In constructor 'matrix::matrix()':
foo.cpp:12:35: error: 'memset' was not declared in this scope
     matrix(){ memset(a,0,sizeof(a)); }
                                   ^
foo.cpp: In function 'void dfs(int)':
foo.cpp:48:32: error: 'memset' was not declared in this scope
         memset(f,0xff,sizeof(f));
                                ^
foo.cpp: In function 'void dfs2(int, int*, int)':
foo.cpp:78:32: error: 'memset' was not declared in this scope
         memset(f,0xff,sizeof(f));
                                ^
foo.cpp: In function 'void build_matrix()':
foo.cpp:118:33: error: 'memset' was not declared in this scope
         memset(use,0,sizeof(use));
                                 ^
foo.cpp: In function 'int matrix_pow()':
foo.cpp:138:11: warning: unused variable 'j' [-Wunused-variable]
     int i,j;
           ^
foo.cpp: In function 'int main()':
foo.cpp:161:29: error: 'memset' was not declared in this scope
     memset(use,0,sizeof(use));
                             ^

信息

递交者
类型
递交
题目
P1829 生成树计数
语言
C++
递交时间
2014-07-31 23:38:23
评测时间
2014-07-31 23:38:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes