/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void add1(int, int, int, int, int, int)':
/in/foo.cc:19:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
/in/foo.cc: In function 'void add2(int, int, int, int, int, int)':
/in/foo.cc:30:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
/in/foo.cc: In function 'int query1(int, int, int, int, int)':
/in/foo.cc:39:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1,res=0;
          ~^~
/in/foo.cc: In function 'int query2(int, int, int, int, int)':
/in/foo.cc:48:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1,res=0;
          ~^~
/in/foo.cc: In function 'int read()':
/in/foo.cc:9:13: warning: 'c' is used uninitialized in this function [-Wuninitialized]
  while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
        ~~~~~^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:8:21: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int f=1,ans=0;char c;
                     ^
/in/foo.cc:8:21: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/foo.cc:9:13: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
  while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
        ~~~~~^~~~~~~
/in/foo.cc:8:21: note: 'c' was declared here
  int f=1,ans=0;char c;
                     ^
# 状态 耗时 内存占用
#1 Accepted 3ms 356.0 KiB
#2 Accepted 3ms 316.0 KiB
#3 Accepted 18ms 360.0 KiB
#4 Accepted 28ms 328.0 KiB
#5 Accepted 49ms 328.0 KiB
#6 Accepted 64ms 344.0 KiB
#7 Accepted 57ms 604.0 KiB
#8 Accepted 57ms 844.0 KiB
#9 Accepted 45ms 1.344 MiB
#10 Accepted 59ms 1.312 MiB

信息

递交者
类型
递交
题目
P1448 校门外的树
语言
C++
递交时间
2018-10-19 20:05:18
评测时间
2018-10-19 20:05:18
评测机
分数
10
总耗时
387ms
峰值内存
1.344 MiB