Viruses.cpp: In function 'int main()':
Viruses.cpp:14:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d %d %d", &G, &N, &M);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Viruses.cpp:17:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%d %d", &a, &k);
| ~~~~~^~~~~~~~~~~~~~~~~
Viruses.cpp:21:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d", &v);
| ~~~~~^~~~~~~~~~