/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main(int, const char**)':
/in/foo.cc:25:66: warning: operation on 'j' may be undefined [-Wsequence-point]
     for (int j=forstart+1; (flag&&j<forend)||(!flag&&j>forend); j= p3==1 ? ++j:--j){
                                                                 ~^~~~~~~~~~~~~~~~~
/in/foo.cc:28:19: error: 'elseif' was not declared in this scope
       elseif(p1==2) {tempchar= flag ? char(j-31):char(j-33);}
                   ^
/in/foo.cc:29:7: error: expected '}' before 'else'
       else {tempchar='*';}
       ^~~~
/in/foo.cc:31:6: error: expected '}' before 'else'
      else{
      ^~~~
/in/foo.cc:35:35: error: 'j' was not declared in this scope
       else {tempchar= flag ? char(j+1):char(j-1);}
                                   ^
/in/foo.cc: At global scope:
/in/foo.cc:43:2: error: expected declaration before '}' token
  }
  ^

信息

递交者
类型
递交
题目
P1379 字符串的展开
语言
C++
递交时间
2019-08-29 09:30:22
评测时间
2019-08-29 09:30:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes