记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:23: error: expected unqualified-id before ';' token
    5 |     int a,b,c,d,e,f,g,;
      |                       ^
/in/foo.cc:12:16: error: expected ';' before 'if'
   12 |         g=d*d*d
      |                ^
      |                ;
   13 | 
   14 |         if (e+f+g=a) cout<<"YES"<<endl;
      |         ~~      
/in/foo.cc:15:9: error: 'else' without a previous 'if'
   15 |         else cout<<"NO"<<endl;
      |         ^~~~

信息

递交者
类型
自测
题目
P1017 contest1-3 水仙花数
语言
C++
递交时间
2026-11-13 20:08:31
评测时间
2026-11-13 20:08:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes