QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#107267#5103. Fair DivisionballanceCompile Error//C++2352b2023-05-20 17:49:232023-05-20 17:49:26

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-05-20 17:49:26]
  • 评测
  • [2023-05-20 17:49:23]
  • 提交

answer

import  std;
int main()
{
std::print("HELLO");
}

Details

answer.code:1:1: error: ‘import’ does not name a type
    1 | import  std;
      | ^~~~~~
answer.code:1:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’
answer.code: In function ‘int main()’:
answer.code:4:6: error: ‘print’ is not a member of ‘std’
    4 | std::print("HELLO");
      |      ^~~~~