/in/foo.cc: In function 'int main()':
/in/foo.cc:10:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long unsigned int*' [-Wformat=]
scanf("%d%d%d%d%d",&M,&a,&t1,&t2,&t3);
~~ ^
/in/foo.cc:10:38: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long unsigned int*' [-Wformat=]
/in/foo.cc:10:38: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long unsigned int*' [-Wformat=]
/in/foo.cc:10:38: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long unsigned int*' [-Wformat=]
/in/foo.cc:10:38: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'long long unsigned int*' [-Wformat=]
/in/foo.cc:11:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=a;++i)
~^~~
/in/foo.cc:13:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
scanf("%d",&T[i]);
~~~~~^
/in/foo.cc:16:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(T[i]='u')time+=t1+t3;
~~~~^~~~
/in/foo.cc:17:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
else if(T[i]='f')time+=2*t2;
~~~~^~~~
/in/foo.cc:18:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
else if(T[i]='d')time+=t1+t3;
~~~~^~~~