/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:13: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   y=sqrt(m^2+b)+sqrt(n^2+d);
            ~^~
/in/foo.cc:12:15: error: 'sqrt' was not declared in this scope
   y=sqrt(m^2+b)+sqrt(n^2+d);
               ^
/in/foo.cc:12:25: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   y=sqrt(m^2+b)+sqrt(n^2+d);
                        ~^~
/in/foo.cc:18:13: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   y=sqrt(m^2+b)+sqrt(n^2+d);
            ~^~
/in/foo.cc:18:15: error: 'sqrt' was not declared in this scope
   y=sqrt(m^2+b)+sqrt(n^2+d);
               ^
/in/foo.cc:18:25: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   y=sqrt(m^2+b)+sqrt(n^2+d);
                        ~^~

信息

递交者
类型
递交
题目
P1433 火炬手之梦
语言
C++
递交时间
2018-07-21 17:46:07
评测时间
2018-07-21 17:46:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes