QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#788074 | #9578. 爱上字典 | abovecloud# | Compile Error | / | / | C++14 | 261b | 2024-11-27 15:49:41 | 2024-11-27 15:49:50 |
Judging History
answer
a = input()
a = a.replace(',','')
a = a.replace('.','')
a = a.replace('?','')
a = a.replace('!','')
a = a.lower()
# print(a)
st = set(a.split())
n = int(input())
for i in range(n):
s = input()
if s in st:
st.remove(s)
print(len(st))
詳細信息
answer.code:2:19: error: empty character constant 2 | a = a.replace(',','') | ^~ answer.code:3:19: error: empty character constant 3 | a = a.replace('.','') | ^~ answer.code:4:19: error: empty character constant 4 | a = a.replace('?','') | ^~ answer.code:5:19: error: empty character constant 5 | a = a.replace('!','') | ^~ answer.code:7:3: error: invalid preprocessing directive #print 7 | # print(a) | ^~~~~ answer.code:1:1: error: ‘a’ does not name a type 1 | a = input() | ^