Main.cpp: In function 'int main()':
Main.cpp:36:15: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
36 | scanf("%d%d", &nCours, &nWeeks);
| ~^ ~~~~~~~
| | |
| int* long long int*
| %lld
Main.cpp:36:17: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
36 | scanf("%d%d", &nCours, &nWeeks);
| ~^ ~~~~~~~
| | |
| int* long long int*
| %lld
Main.cpp:38:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
38 | scanf("%d", &a[i]);
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
Main.cpp:40:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
40 | scanf("%d", &b[i]);
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
Main.cpp:36:12: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d%d", &nCours, &nWeeks);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:38:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
Main.cpp:40:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d", &b[i]);
| ~~~~~^~~~~~~~~~~~~