Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:20:42: error: expected ')' before '{' token
   20 |                 if(pws[i].p1!=pws[i+1].p1 {cnt++;
      |                   ~                      ^~
      |                                          )
/in/foo.cc:25:9: error: expected primary-expression before '}' token
   25 |         }
      |         ^
/in/foo.cc:13:15: warning: unused variable 'cnt' [-Wunused-variable]
   13 |         int n,cnt=0,uum=0,ans=81; password pws[9];
      |               ^~~
/in/foo.cc:13:21: warning: unused variable 'uum' [-Wunused-variable]
   13 |         int n,cnt=0,uum=0,ans=81; password pws[9];
      |                     ^~~

信息

递交者
类型
递交
题目
P2476 密码锁
语言
C++
递交时间
2025-10-05 21:05:09
评测时间
2025-10-05 21:05:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes