power.cpp: In function 'int main()':
power.cpp:22:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
power.cpp:24:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf("%d %d",&u,&v);
| ~~~~~^~~~~~~~~~~~~~~
power.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%s",s+1);
| ~~~~~^~~~~~~~~~