QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#514216#9177. String and Nailsucup-team3695#Compile Error//C++20184b2024-08-10 23:11:282024-08-10 23:11:28

Judging History

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

  • [2024-08-10 23:11:28]
  • 评测
  • [2024-08-10 23:11:28]
  • 提交

answer

import sys
input=lambda:sys.stdin.readline().strip()

n=int(input())
l=[tuple(map(int,input().split())) for _ in range(n)]
l.sort()
print('YES')
for a,b in l[:-1]:print(a,b)


详细

answer.code:7:7: warning: multi-character character constant [-Wmultichar]
    7 | print('YES')
      |       ^~~~~
answer.code:1:1: error: ‘import’ does not name a type
    1 | import sys
      | ^~~~~~
answer.code:1:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’