Main.cpp: In function 'int main()':
Main.cpp:40:12: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
40 | scanf("%d %lf %d", &n, &P, &T);
| ~^ ~~
| | |
| int* long long int*
| %lld
Main.cpp:40:19: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
40 | scanf("%d %lf %d", &n, &P, &T);
| ~^ ~~
| | |
| int* long long int*
| %lld
Main.cpp: In function 'bool test_students(std::vector<bool>)':
Main.cpp:21:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | scanf(" %c", &answer);
| ~~~~~^~~~~~~~~~~~~~~~
Main.cpp: In function 'int main()':
Main.cpp:40:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d %lf %d", &n, &P, &T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:54:12: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | scanf(" %c", &verdict);
| ~~~~~^~~~~~~~~~~~~~~~~