记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%d %d",&year,&mon);
      |         ^~~~~
/in/foo.cc:10:25: error: 'printf' was not declared in this scope
   10 |                         printf("29");
      |                         ^~~~~~
/in/foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | using namespace std;
/in/foo.cc:14:25: error: 'printf' was not declared in this scope
   14 |                         printf("28");
      |                         ^~~~~~
/in/foo.cc:14:25: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/in/foo.cc:21:25: error: 'printf' was not declared in this scope
   21 |                         printf("31");
      |                         ^~~~~~
/in/foo.cc:21:25: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/in/foo.cc:25:25: error: 'printf' was not declared in this scope
   25 |                         printf("30");
      |                         ^~~~~~
/in/foo.cc:25:25: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
比赛
2025程序设计与竞赛作业赛第一场(整装出发)
语言
C++
递交时间
2025-09-27 18:34:57
评测时间
2025-10-03 01:46:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes