Compile Error

foo.cc: In function 'int main()':
foo.cc:13:49: error: expected ';' before 'bool'
   13 |                         memset(a,false,sizeof a)
      |                                                 ^
      |                                                 ;
   14 |                         bool ok=1;
      |                         ~~~~                     
foo.cc:24:49: error: 'ok' was not declared in this scope
   24 |                                                 ok=false;
      |                                                 ^~
foo.cc:27:37: error: 'ok' was not declared in this scope
   27 |                                 if(!ok)break;
      |                                     ^~
foo.cc:29:28: error: 'ok' was not declared in this scope
   29 |                         if(ok) str[i]="Yes";
      |                            ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1909 偶数矩阵
语言
C++
递交时间
2023-07-20 19:19:21
评测时间
2023-07-20 19:19:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes