/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:1: error: 'import' does not name a type
    1 | import std;
      | ^~~~~~
/in/foo.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:5: error: 'printf' was not declared in this scope
    5 |     printf("hello, world\n");
      |     ^~~~~~
/in/foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | import std;

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2026-07-30 11:11:43
评测时间
2026-07-30 11:11:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes