Main.cpp: In function ‘int main()’:
Main.cpp:9:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
9 | for(int i=1;i<=n;i++)l[i]++,ans=std::max(ans,l[i]*t[i]);printf("%d\n",ans);
| ^~~
Main.cpp:9:65: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
9 | for(int i=1;i<=n;i++)l[i]++,ans=std::max(ans,l[i]*t[i]);printf("%d\n",ans);
| ^~~~~~
Main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d%d",&n,&d);
| ~~~~~^~~~~~~~~~~~~~
Main.cpp:6:31: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | for(int i=1;i<=n;i++)scanf("%d%d",&t[i],&l[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~