/in/foo.cc: In function 'int main()':
/in/foo.cc:15:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
15 | scanf("%d %d %d",&y,&m,&d);
| ~^ ~~
| | |
| int* long long int*
| %lld
/in/foo.cc:15:16: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
15 | scanf("%d %d %d",&y,&m,&d);
| ~^ ~~
| | |
| int* long long int*
| %lld
/in/foo.cc:15:19: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
15 | scanf("%d %d %d",&y,&m,&d);
| ~^ ~~
| | |
| int* long long int*
| %lld
/in/foo.cc:19:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
19 | if (((y%4 == 0 && y%100 != 0 || y%400 == 0)&& m<=2)||(((y+1)%4 == 0 && (y+1)%100 != 0 || (y+1)%400 == 0)&&m>2))
| ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:19:81: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
19 | if (((y%4 == 0 && y%100 != 0 || y%400 == 0)&& m<=2)||(((y+1)%4 == 0 && (y+1)%100 != 0 || (y+1)%400 == 0)&&m>2))
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~