QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#788074#9578. 爱上字典abovecloud#Compile Error//C++14261b2024-11-27 15:49:412024-11-27 15:49:50

Judging History

你现在查看的是最新测评结果

  • [2024-11-27 15:49:50]
  • 评测
  • [2024-11-27 15:49:41]
  • 提交

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()
      | ^