0_0_29299193_3891.cpp: In function 'int main()': 0_0_29299193_3891.cpp:42:45: error: 'scanf_s' was not declared in this scope scanf_s("%d:%d-%d:%d", &h1, &m1, &h2, &m2); ^