fishing.cpp:39:10: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
39 | main(void){
| ^
fishing.cpp: In function 'int main()':
fishing.cpp:40:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%lld %lld",&n,&t);
| ~~~~~^~~~~~~~~~~~~~~~~~~
fishing.cpp:44:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
44 | scanf("%lld",&a[i]);
| ~~~~~^~~~~~~~~~~~~~
fishing.cpp:52:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
52 | scanf("%lld",&a[i]);
| ~~~~~^~~~~~~~~~~~~~
fishing.cpp:60:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
60 | scanf("%lld",&a[i]);
| ~~~~~^~~~~~~~~~~~~~