Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:8:8: error: 'positive' was not declared in this scope
cout<<positive;
^~~~~~~~
/in/foo.cc:9:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(n=0)
^
/in/foo.cc:10:8: error: 'zero' was not declared in this scope
cout<<zero;
^~~~
/in/foo.cc:12:8: error: 'negative' was not declared in this scope
cout<<negative;
^~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P2330 1.4.1:判断数正负
- 语言
- C++
- 递交时间
- 2024-04-29 14:06:27
- 评测时间
- 2024-04-29 14:06:27
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes