Main.c: In function 'main':
Main.c:4:18: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
4 | if((scanf("%ld %ld",&a,&b))!=EOF)
| ~~^ ~~
| | |
| | long long int *
| long int *
| %lld
Main.c:4:22: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'long long int *' [-Wformat=]
4 | if((scanf("%ld %ld",&a,&b))!=EOF)
| ~~^ ~~
| | |
| | long long int *
| long int *
| %lld
Main.c:5:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
5 | printf("%ld
", a + b);
| ~~^ ~~~~~
| | |
| | long long int
| long int
| %lld
Main.c:6:23: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
6 | else if((scanf("%ld %ld",&a,&b))==0 0)
| ~~^ ~~
| | |
| | long long int *
| long int *
| %lld
Main.c:6:27: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'long long int *' [-Wformat=]
6 | else if((scanf("%ld %ld",&a,&b))==0 0)
| ~~^ ~~
| | |
| | long long int *
| long int *
| %lld
Main.c:6:40: error: expected ')' before numeric constant
6 | else if((scanf("%ld %ld",&a,&b))==0 0)
| ~ ^~
| )