Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81913 叶城俊 07a+b>c C++ Compile Error 0 MS 0 KB 184 2024-07-12 16:10:18

Tests(0/0):


Code:

#include <iostream> #include <iomanip> using namespace std; int main (){ int a,b,c (-2^16<=a, b, c<2^16); cin>>a>>b>>c; cout<<((a+b>c)?"YES":"NO"); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:21: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
     int a,b,c (-2^16<=a, b, c<2^16);
                     ^
Main.cc:5:30: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
     int a,b,c (-2^16<=a, b, c<2^16);
                              ^
Main.cc:5:35: error: expression list treated as compound expression in initializer [-fpermissive]
     int a,b,c (-2^16<=a, b, c<2^16);
                                   ^
Main.cc:5:35: warning: second operand of conditional expression has no effect [-Wunused-value]
Main.cc:5:35: warning: third operand of conditional expression has no effect [-Wunused-value]
Main.cc:5:35: warning: right operand of comma operator has no effect [-Wunused-value]