0_0_19696952_5530.cpp: In function 'int main(int, char**)': 0_0_19696952_5530.cpp:12:61: error: 'dayofyeary' was not declared in this scope days=(y-1)*365+(y-1)/4-(y-1)/100+(y-1)/400+dayofyeary(y,m,d); ^