Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(x=0) cout<<n;
        ^
/in/foo.cc:16:13: error: 'i' was not declared in this scope
  else cout<<i;
             ^

信息

递交者
类型
递交
题目
P2595 春游3级1 202306
语言
C++
递交时间
2024-06-27 15:49:18
评测时间
2024-06-27 15:49:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes