记录详情

Compile Error

foo.c:1:1: error: expected identifier or '(' before 'for'
    1 | for _ in range(5):
      | ^~~
foo.c:2:41: warning: character constant too long for its type
    2 |     print(int(eval(input().replace('0', 'False').replace('1', 'True').replace('!', ' not ').replace('&', ' and ').replace('|', ' or '))))
      |                                         ^~~~~~~
foo.c:2:63: warning: multi-character character constant [-Wmultichar]
    2 |     print(int(eval(input().replace('0', 'False').replace('1', 'True').replace('!', ' not ').replace('&', ' and ').replace('|', ' or '))))
      |                                                               ^~~~~~
foo.c:2:84: warning: character constant too long for its type
    2 |     print(int(eval(input().replace('0', 'False').replace('1', 'True').replace('!', ' not ').replace('&', ' and ').replace('|', ' or '))))
      |                                                                                    ^~~~~~~
foo.c:2:106: warning: character constant too long for its type
    2 |     print(int(eval(input().replace('0', 'False').replace('1', 'True').replace('!', ' not ').replace('&', ' and ').replace('|', ' or '))))
      |                                                                                                          ^~~~~~~
foo.c:2:128: warning: multi-character character constant [-Wmultichar]
    2 |     print(int(eval(input().replace('0', 'False').replace('1', 'True').replace('!', ' not ').replace('&', ' and ').replace('|', ' or '))))
      |                                                                                                                                ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1539 Problem 5D. 表达式求值
语言
C
递交时间
2023-11-11 22:07:08
评测时间
2023-11-11 22:07:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes