/in/foo.cc: In function 'int days(d, d)':
/in/foo.cc:11:1: error: 'lont' was not declared in this scope
lont int td=0;
^~~~
/in/foo.cc:13:1: error: 'td' was not declared in this scope
td+=leap(i)?366:365;
^~
/in/foo.cc:2:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
#define leap(y) ((y)%400==0||(y)%100!=0&&(y)%4==0)
~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:13:5: note: in expansion of macro 'leap'
td+=leap(i)?366:365;
^~~~
/in/foo.cc:15:1: error: 'td' was not declared in this scope
td-=mon[leap(d1.y)][i];
^~
/in/foo.cc:2:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
#define leap(y) ((y)%400==0||(y)%100!=0&&(y)%4==0)
~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:15:9: note: in expansion of macro 'leap'
td-=mon[leap(d1.y)][i];
^~~~
/in/foo.cc:16:1: error: 'td' was not declared in this scope
td-=d1.d;
^~
/in/foo.cc:2:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
#define leap(y) ((y)%400==0||(y)%100!=0&&(y)%4==0)
~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:18:9: note: in expansion of macro 'leap'
td+=mon[leap(d2.y)][i];
^~~~