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)提供评测服务