记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:11: error: unable to find numeric literal operator 'operator""a'
      cin>>100a+10b+c>>;
           ^~~~
/in/foo.cc:5:11: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
/in/foo.cc:5:16: error: unable to find numeric literal operator 'operator""b'
      cin>>100a+10b+c>>;
                ^~~
/in/foo.cc:5:16: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
/in/foo.cc:5:23: error: expected primary-expression before ';' token
      cin>>100a+10b+c>>;
                       ^
/in/foo.cc:6:15: error: invalid type argument of unary '*' (have 'int')
      if   (a**3+b**3+c**3=100a+10b+c)
               ^
/in/foo.cc:6:20: error: invalid type argument of unary '*' (have 'int')
      if   (a**3+b**3+c**3=100a+10b+c)
                    ^
/in/foo.cc:6:25: error: invalid type argument of unary '*' (have 'int')
      if   (a**3+b**3+c**3=100a+10b+c)
                         ^
/in/foo.cc:6:27: error: unable to find numeric literal operator 'operator""a'
      if   (a**3+b**3+c**3=100a+10b+c)
                           ^~~~
/in/foo.cc:6:27: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
/in/foo.cc:6:32: error: unable to find numeric literal operator 'operator""b'
      if   (a**3+b**3+c**3=100a+10b+c)
                                ^~~
/in/foo.cc:6:32: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
/in/foo.cc:7:16: error: 'YES' was not declared in this scope
          cout<<YES<<endl;
                ^~~
/in/foo.cc: At global scope:
/in/foo.cc:8:6: error: expected unqualified-id before 'else'
 }    else
      ^~~~
/in/foo.cc:10:7: error: expected unqualified-id before 'return'
       return 0;
       ^~~~~~

信息

递交者
类型
递交
题目
P1092 xf2-5水仙花数
语言
C++
递交时间
2024-07-09 19:24:33
评测时间
2024-07-09 19:24:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes