/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:2: error: invalid preprocessing directive #i3nclude
 #i3nclude <cmath>
  ^~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:17:38: error: 'pow' was not declared in this scope
    len += sqrt(pow(x[i] - x[i - 1], 2) + pow(y[i] - y[i - 1], 2));
                                      ^
/in/foo.cc:17:65: error: 'sqrt' was not declared in this scope
    len += sqrt(pow(x[i] - x[i - 1], 2) + pow(y[i] - y[i - 1], 2));
                                                                 ^
/in/foo.cc:20:34: error: 'pow' was not declared in this scope
  len += sqrt(pow(x[n-1] - x[0], 2) + pow(y[0] - y[n - 1], 2));
                                  ^
/in/foo.cc:20:61: error: 'sqrt' was not declared in this scope
  len += sqrt(pow(x[n-1] - x[0], 2) + pow(y[0] - y[n - 1], 2));
                                                             ^

信息

递交者
类型
递交
题目
P1007 绕钉子的长绳子
语言
C++
递交时间
2025-01-20 01:34:30
评测时间
2025-01-20 01:34:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes