Compile Error

foo.cc: In function 'int main()':
foo.cc:12:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   12 |     a[x][y]="*";
      |             ^~~
      |             |
      |             const char*
foo.cc:17:17: warning: comparison with string literal results in unspecified behavior [-Waddress]
   17 |     if(a[i][j]!="*")
      |                 ^~~
foo.cc:17:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cc:21:40: warning: comparison with string literal results in unspecified behavior [-Waddress]
   21 |        s+=a[i+dir[k][0]][j+dir[k][1]]=="*";
      |                                        ^~~
foo.cc:21:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cc:22:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   22 |    a[i][j]=s+"0";
      |            ~^~~~
      |             |
      |             const char*
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1145 扫雷
语言
C++
递交时间
2021-12-22 13:15:09
评测时间
2021-12-22 13:15:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes