/ 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:35: error: 'pow' was not declared in this scope
    len += sqrt(pow(x[i] - x[i - 1]) + pow(y[i] - y[i - 1]));
                                   ^
/in/foo.cc:17:59: error: 'sqrt' was not declared in this scope
    len += sqrt(pow(x[i] - x[i - 1]) + pow(y[i] - y[i - 1]));
                                                           ^
/in/foo.cc:20:31: error: 'pow' was not declared in this scope
  len += sqrt(pow(x[n-1] - x[0]) + pow(y[0] - y[n - 1]));
                               ^
/in/foo.cc:20:55: error: 'sqrt' was not declared in this scope
  len += sqrt(pow(x[n-1] - x[0]) + pow(y[0] - y[n - 1]));
                                                       ^

信息

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