/ Vijos /

记录详情

Accepted

foo.cc: In function 'bool ok_()':
foo.cc:10:18: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(t[a[i]]==-1 || t[b[i]]==-1 || t[c[i]]==-1)
                  ^
foo.cc:10:33: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(t[a[i]]==-1 || t[b[i]]==-1 || t[c[i]]==-1)
                                 ^
foo.cc:10:48: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(t[a[i]]==-1 || t[b[i]]==-1 || t[c[i]]==-1)
                                                ^
foo.cc:12:19: warning: array subscript has type 'char' [-Wchar-subscripts]
         if((t[a[i]]+t[b[i]])%n!=t[c[i]])
                   ^
foo.cc:12:27: warning: array subscript has type 'char' [-Wchar-subscripts]
         if((t[a[i]]+t[b[i]])%n!=t[c[i]])
                           ^
foo.cc:12:39: warning: array subscript has type 'char' [-Wchar-subscripts]
         if((t[a[i]]+t[b[i]])%n!=t[c[i]])
                                       ^
foo.cc:13:23: warning: array subscript has type 'char' [-Wchar-subscripts]
             if((t[a[i]]+t[b[i]]+1)%n!=t[c[i]])
                       ^
foo.cc:13:31: warning: array subscript has type 'char' [-Wchar-subscripts]
             if((t[a[i]]+t[b[i]]+1)%n!=t[c[i]])
                               ^
foo.cc:13:45: warning: array subscript has type 'char' [-Wchar-subscripts]
             if((t[a[i]]+t[b[i]]+1)%n!=t[c[i]])
                                             ^
foo.cc: In function 'void Try_()':
foo.cc:23:21: warning: array subscript has type 'char' [-Wchar-subscripts]
         int s=t[a[i]]+t[b[i]]+jw;
                     ^
foo.cc:23:29: warning: array subscript has type 'char' [-Wchar-subscripts]
         int s=t[a[i]]+t[b[i]]+jw;
                             ^
foo.cc:24:18: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(t[c[i]]!=s%n)
                  ^
foo.cc: In function 'int main()':
foo.cc:57:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s%s%s",a+1,b+1,c+1);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 340.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 21ms 400.0 KiB
#8 Accepted 4ms 428.0 KiB
#9 Accepted 45ms 416.0 KiB
#10 Accepted 1ms 388.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2021-09-04 14:56:36
评测时间
2021-09-04 14:56:36
评测机
分数
100
总耗时
86ms
峰值内存
428.0 KiB