QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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))
Details
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() | ^