记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:8:8: warning: comparison with string literal results in unspecified behavior [-Waddress]
  if(a=="+++++++++++++++++++++++++++++++++++++++++++++++++.------.++++++.")
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cc:10:8: warning: comparison with string literal results in unspecified behavior [-Waddress]
  if(a=="++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++<.>.")
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:10:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cc:12:8: warning: comparison with string literal results in unspecified behavior [-Waddress]
  if(a=="<<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>++++++++++++++++++++++++++++++++.<++++++++++++++++++++++++++++++++><+++.+++.+++++++.-----------------.>.<++++++++++++++++++++.----------.++++++.>++++++++++++++.")
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:12:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cc:14:1: error: expected ';' before '}' token
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1276 BF
比赛
2021苏青奥赛集训营(2021/7/17训练赛)
语言
C++
递交时间
2021-07-17 11:11:17
评测时间
2021-07-17 11:11:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes