#include <stdio.h> #include <math.h> #include <windows.h> int main() { int a, b, c, d, e, f; scanf("%d:%d:%d %d:%d:%d", &a, &b, &c, &d, &e, &f); int temp_1, temp_2, temp_3; temp_1 = a * 3600 + b * 60 + c; temp_2 = d * 3600 + e * 60 + f; temp_3 = abs(temp_1 - temp_2); printf("%d:%02d:%02d", temp_3/3600, (temp_3%3600)/60, (temp_3%3600)%60); } /* Main.c:3:21: fatal error: windows.h: No such file or directory #include <windows.h> ^ compilation terminated. */ |
Double click to view unformatted code.