foo.cc:83: error: unterminated #ifdef
83 | #ifdef method_2
|
foo.cc: In function 'int main()':
foo.cc:55:1: error: expected primary-expression before '/' token
55 | /
| ^
foo.cc:56:1: error: expected primary-expression before 'for'
56 | for(int i=1;i<=n;i++){
| ^~~
foo.cc:56:13: error: 'i' was not declared in this scope
56 | for(int i=1;i<=n;i++){
| ^
foo.cc:62:1: error: expected primary-expression before '/' token
62 | /
| ^
foo.cc:63:1: error: expected primary-expression before 'int'
63 | int cnt=0;
| ^~~
foo.cc:67:11: error: 'cnt' was not declared in this scope; did you mean 'int'?
67 | dfs(i,j,++cnt);
| ^~~
| int
foo.cc:71:1: error: expected primary-expression before '/' token
71 | /
| ^
foo.cc:72:1: error: expected primary-expression before 'for'
72 | for(int i=0; i<=n+1; i++) {
| ^~~
foo.cc:78:1: error: expected primary-expression before '/' token
78 | /
| ^
foo.cc:79:8: error: 'cnt' was not declared in this scope; did you mean 'int'?
79 | cout<<(cnt-1)/2;
| ^~~
| int
foo.cc:42:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
42 | freopen("偷拍硕哥3.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务