记录详情

Compile Error

/in/foo.cc: In function 'int init()':
/in/foo.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'bool check(int, int)':
/in/foo.cc:20:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(a[num][i]&&b[i]!=color||!a[num][i]) 
     ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:40:16: error: too few arguments to function 'void dfs(int, int)'
         dfs(n+1);
                ^
/in/foo.cc:28:6: note: declared here
 void dfs(int num,int color)
      ^~~
/in/foo.cc:39:13: warning: unused variable 'num' [-Wunused-variable]
         int num=n;
             ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:46:6: error: too few arguments to function 'void dfs(int, int)'
  dfs();
      ^
/in/foo.cc:28:6: note: declared here
 void dfs(int num,int color)
      ^~~
/in/foo.cc: In function 'bool check(int, int)':
/in/foo.cc:27:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
图的m着色问题
题目数据
下载
语言
C++
递交时间
2019-07-01 11:43:02
评测时间
2019-07-01 11:43:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes