sushi.cpp: In function 'int main()':
sushi.cpp:12:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x[i]);
~~~~~^~~~~~~~~~~~
sushi.cpp:15:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int s,t,p;scanf("%d%d%d",&s,&t,&p);s--;t--;
~~~~~^~~~~~~~~~~~~~~~~~~
sushi.cpp:30:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x;scanf("%d",&x);
~~~~~^~~~~~~~~
sushi.cpp:34:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int s,t,p;scanf("%d%d%d",&s,&t,&p);
~~~~~^~~~~~~~~~~~~~~~~~~