记录详情

Runtime Error

foo.cc: In function ‘int main()’:
foo.cc:9:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    9 |         for(int i=0;i<=str.length()<1;i++)
      |                     ~^~~~~~~~~~~~~~
foo.cc:9:22: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
foo.cc:14:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘int’ [-Wformat=]
   14 |         printf("%s",A[n[i]-64]);
      |                 ~^  ~~~~~~~~~~
      |                  |           |
      |                  char*       int
      |                 %d
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 536.0 KiB
#2 Runtime Error Segmentation fault 3ms 532.0 KiB
#3 Runtime Error Segmentation fault 3ms 532.0 KiB
#4 Runtime Error Segmentation fault 2ms 552.0 KiB
#5 Runtime Error Segmentation fault 2ms 768.0 KiB
#6 Runtime Error Segmentation fault 2ms 320.0 KiB
#7 Runtime Error Segmentation fault 2ms 536.0 KiB
#8 Runtime Error Segmentation fault 2ms 536.0 KiB
#9 Runtime Error Segmentation fault 2ms 540.0 KiB
#10 Runtime Error Segmentation fault 2ms 540.0 KiB

信息

递交者
类型
递交
题目
1# 加密编码(64MB,1S)
比赛
2018-2019年上学期信息学奥赛期末测试
题目数据
下载
语言
C++
递交时间
2019-01-03 21:01:55
评测时间
2025-09-23 07:23:02
评测机
分数
0
总耗时
29ms
峰值内存
768.0 KiB