Compile Error

foo.cc:24:22: error: '_TCHAR' has not been declared
 int _tmain(int argc, _TCHAR* argv[])
                      ^~~~~~
foo.cc: In function 'int _tmain(int, int**)':
foo.cc:31:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d,%d,%d",&year,&month,&day);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:32:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%c",&temp);
   ~~~~~^~~~~~~~~~~~
foo.cc:36:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%c",&temp);
   ~~~~~^~~~~~~~~~~~
foo.cc:38:8: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
  system("pause");
  ~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1089 计算星期几
语言
C++
递交时间
2021-07-24 12:17:21
评测时间
2021-07-24 12:17:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes