Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:37:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(flag=1)
^
/in/foo.cc:69:26: error: expected primary-expression before '<' token
cout<<st[i].name<<" "<<<st[i].secs<<endl;
^
/in/foo.cc:69:37: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
cout<<st[i].name<<" "<<<st[i].secs<<endl;
~~~~~~~~~~^~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1152 结构体-手机通话记录1
- 语言
- C++
- 递交时间
- 2021-12-09 21:30:25
- 评测时间
- 2021-12-09 21:30:25
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes