/ SUOI /

记录详情

Compile Error

/in/foo.cc: In function 'void dfs1(int, int, int, int)':
/in/foo.cc:20:39: error: 'dfs' was not declared in this scope
  if(H[x]<h) f[H[x]][y|(1<<(x-tar))]++,dfs(x-1,tar,H[x],y|(1<<(x-tar)));
                                       ^~~
/in/foo.cc:20:39: note: suggested alternative: 'dfs1'
  if(H[x]<h) f[H[x]][y|(1<<(x-tar))]++,dfs(x-1,tar,H[x],y|(1<<(x-tar)));
                                       ^~~
                                       dfs1
/in/foo.cc: In function 'void dfs2(int, int, int, int)':
/in/foo.cc:25:39: error: 'dfs' was not declared in this scope
  if(H[x]<h) g[H[x]][y|(1<<(x-tar))]++,dfs(x-1,tar,H[x],y|(1<<(x-tar)));
                                       ^~~
/in/foo.cc:25:39: note: suggested alternative: 'dfs2'
  if(H[x]<h) g[H[x]][y|(1<<(x-tar))]++,dfs(x-1,tar,H[x],y|(1<<(x-tar)));
                                       ^~~
                                       dfs2
/in/foo.cc: In function 'int main()':
/in/foo.cc:42:18: error: too many arguments to function 'void dfs1(int, int, int, int)'
  dfs1(m,1,100,0,f);
                  ^
/in/foo.cc:17:6: note: declared here
 void dfs1(int x,int tar,int h,int y){
      ^~~~
/in/foo.cc:43:20: error: too many arguments to function 'void dfs2(int, int, int, int)'
  dfs2(N,m+1,100,0,g);
                    ^
/in/foo.cc:22:6: note: declared here
 void dfs2(int x,int tar,int h,int y){
      ^~~~

信息

递交者
类型
递交
题目
#62 网友跳
语言
C++
递交时间
2018-10-31 09:25:23
评测时间
2018-10-31 09:25:23
评测机
分数
0
总耗时
1262ms
峰值内存
134.855 MiB