/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:24: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (isalpha(ch)) a[ch] ++;
                        ^
/in/foo.cc:16:16: warning: iteration 349 invokes undefined behavior [-Waggressive-loop-optimizations]
   if (Max < a[i]) pos = i, Max = a[i];
             ~~~^
/in/foo.cc:15:20: note: within this loop
  for (int i = 1; i <= 1000; i++)
                  ~~^~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 4ms 352.0 KiB
#2 Runtime Error 2ms 256.0 KiB
#3 Runtime Error 4ms 264.0 KiB
#4 Runtime Error 3ms 384.0 KiB
#5 Runtime Error 3ms 348.0 KiB
#6 Runtime Error 4ms 336.0 KiB
#7 Runtime Error 3ms 508.0 KiB

信息

递交者
类型
递交
题目
P1244 Matrix67的情书
语言
C++
递交时间
2018-02-20 21:05:46
评测时间
2018-02-20 21:05:46
评测机
分数
0
总耗时
25ms
峰值内存
508.0 KiB