acm.cpp: In function 'int main()':
acm.cpp:19:13: warning: variable 'indx' set but not used [-Wunused-but-set-variable]
int indx = i;
^~~~
acm.cpp:57:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
for(ii temp: scores){
^~~~
acm.cpp:61:9: warning: unused variable 'indx' [-Wunused-variable]
int indx = 0;
^~~~
acm.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
~~~~~^~~~~~~~~~~~~~~~
acm.cpp:18:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s", str);
~~~~~^~~~~~~~~~~~
acm.cpp:24:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s", str2);
~~~~~^~~~~~~~~~~~~
acm.cpp:36:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s", str2);
~~~~~^~~~~~~~~~~~~