/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:33:10: warning: comparison with string literal results in unspecified behavior [-Waddress]
    if(x==".") arr[i][j]=0;//water
          ^~~
/in/foo.cc:33:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
/in/foo.cc:34:15: warning: comparison with string literal results in unspecified behavior [-Waddress]
    else if(x=="#") arr[i][j]=1;//boat
               ^~~
/in/foo.cc:34:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
/in/foo.cc:53:16: error: 'hai' was not declared in this scope
             if(hai[i][j]==1)
                ^~~

信息

递交者
类型
递交
题目
P1076 海战
语言
C++
递交时间
2023-12-20 23:03:48
评测时间
2023-12-20 23:04:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes