/ 大熊 /

记录详情

Wrong Answer

/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;
          ~~~~^~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 184.0 KiB
#2 Wrong Answer 1ms 208.0 KiB
#3 Wrong Answer 2ms 308.0 KiB
#4 Wrong Answer 1ms 192.0 KiB
#5 Wrong Answer 2ms 200.0 KiB
#6 Wrong Answer 1ms 192.0 KiB
#7 Wrong Answer 1ms 312.0 KiB
#8 Wrong Answer 2ms 208.0 KiB
#9 Wrong Answer 2ms 184.0 KiB
#10 Wrong Answer 6ms 188.0 KiB

信息

递交者
类型
递交
题目
体育健将熊老师
语言
C++
递交时间
2018-11-25 20:50:47
评测时间
2018-11-25 20:50:47
评测机
分数
0
总耗时
25ms
峰值内存
312.0 KiB