记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:25: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
    6 |         if(n==n/100%10^3+n/10%10^3+n%10^3)
      |                        ~^~~~~~~~
/in/foo.cc:6:35: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
    6 |         if(n==n/100%10^3+n/10%10^3+n%10^3)
      |                                  ~^~~~~
/in/foo.cc:10:17: error: expected '(' before 'cout'
   10 |                 cout<<"NO"<<endl;
      |                 ^~~~
      |                 (

信息

递交者
类型
递交
题目
P1017 contest1-3 水仙花数
比赛
2026-11-13 C++实测1
语言
C++
递交时间
2026-11-13 19:57:47
评测时间
2026-11-13 19:57:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes