记录详情

Runtime Error

/in/foo.cc: In function 'void solve_string()':
/in/foo.cc:18:16: warning: value computed is not used [-Wunused-value]
  for( i=0,j=0;i<int(s.size()),j<3;i++){
               ~^~~~~~~~~~~~~~
/in/foo.cc: In function 'void solve_arr()':
/in/foo.cc:35:11: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
    if(a[i]==a[i+1]==a[i+2]||a[i]>a[i+1]>a[i+2]){
       ~~~~^~~~~~~~
/in/foo.cc:35:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    if(a[i]==a[i+1]==a[i+2]||a[i]>a[i+1]>a[i+2]){
                             ~~~~^~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 376.0 KiB
#2 Accepted 2ms 376.0 KiB
#3 Wrong Answer 2ms 376.0 KiB
#4 Wrong Answer 2ms 332.0 KiB
#5 Runtime Error 2ms 428.0 KiB

信息

递交者
类型
递交
比赛
2024春 悬赏令第七周
语言
C++
递交时间
2024-05-30 16:30:44
评测时间
2024-06-01 23:21:22
评测机
分数
40
总耗时
10ms
峰值内存
428.0 KiB