prosjek.cpp: In function 'int main()':
prosjek.cpp:12:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
12 | scanf("%d", &a);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
prosjek.cpp:13:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
13 | printf("%d ", (1ll * a * 1ll * i) - sum);
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
prosjek.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
prosjek.cpp:12:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d", &a);
| ~~~~~^~~~~~~~~~