foo.cc: In function 'int main()':
foo.cc:23:2: error: expected ';' before '}' token
}
^
foo.cc:25:16: error: expected primary-expression before ';' token
for(int i=1;i<;i++)
^
foo.cc:27:9: error: 'j' was not declared in this scope
dfs(i,j);
^
foo.cc:27:3: error: 'dfs' was not declared in this scope
dfs(i,j);
^~~
foo.cc:24:6: warning: unused variable 'k' [-Wunused-variable]
int k=0;
^
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
foo.cc:22:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&a[i][j])
~~~~~^~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务