0_0_21700190_25043.cpp: In function 'int main()': 0_0_21700190_25043.cpp:15:36: error: 'scanf_s' was not declared in this scope scanf_s("%4d-%2d-%2d", &y, &m, &d); ^