记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:15:2: error: 'scanf' was not declared in this scope
   15 |  scanf("%d",&n);
      |  ^~~~~
foo.cc:19:2: error: 'printf' was not declared in this scope
   19 |  printf("%d\n",count);
      |  ^~~~~~
foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | int isPrime(int x)
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022春 C语言课程设计 作业1
语言
C++
递交时间
2022-03-01 11:24:34
评测时间
2022-03-01 11:24:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes