Main.cpp: In function 'int main()':
Main.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | scanf("%d%lf%d", &N, &P, &T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:17:26: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | char x; scanf("%c", &x);
| ~~~~~^~~~~~~~~~
Main.cpp:24:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | char x; scanf("%c", &x);
| ~~~~~^~~~~~~~~~