记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
偷拍硕哥3
语言
C++
递交时间
2022-08-02 14:27:56
评测时间
2022-08-02 14:27:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes