记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0;i <= sizeof(s);i++){
                ~~^~~~~~~~~~
/in/foo.cc:7:9: warning: iteration 100005 invokes undefined behavior [-Waggressive-loop-optimizations]
   if(s[i] == 'A'){
      ~~~^
/in/foo.cc:6:18: note: within this loop
  for(int i = 0;i <= sizeof(s);i++){
                ~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 5ms 352.0 KiB
#2 Accepted 4ms 352.0 KiB
#3 Accepted 4ms 352.0 KiB
#4 Accepted 5ms 348.0 KiB
#5 Accepted 4ms 348.0 KiB

信息

递交者
类型
递交
比赛
2019年7月欢乐AK赛
语言
C++
递交时间
2019-07-30 19:40:06
评测时间
2019-07-30 19:40:06
评测机
分数
100
总耗时
25ms
峰值内存
352.0 KiB