Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:15:8: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] cin>>s+1; ~^~ /in/foo.cc:19:12: error: invalid operands of types 'char' and 'const char [2]' to binary 'operator-' temp[s[i]-"a"]=i; ~~~~^~~~ /in/foo.cc:23:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] cin>>p+1; ~^~
信息
- 递交者
- 类型
- 自测
- 题目
- 询问
- 语言
- C++
- 递交时间
- 2018-11-01 21:19:48
- 评测时间
- 2018-11-01 21:19:48
- 评测机
- 分数
- 0
- 总耗时
- 234ms
- 峰值内存
- 29.566 MiB