/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<iostream> include<math.h> include<stdio.h>
 ^
foo.cpp: In function 'void Qsort(int, int)':
foo.cpp:17:15: error: 'swap' was not declared in this scope
 swap(x[i],x[j]);
               ^
foo.cpp: In function 'int main()':
foo.cpp:27:1: error: 'cin' was not declared in this scope
 cin>>n;
 ^
foo.cpp:34:61: error: 'sqrt' was not declared in this scope
 d[i][j]=sqrt((x[i]-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j]));
                                                             ^
foo.cpp:47:38: error: 'min' was not declared in this scope
   f[i][j]=min(f[i][j],f[j][k]+d[k][i]);   
                                      ^
foo.cpp:50:37: error: 'printf' was not declared in this scope
 printf("%.2lf\n",f[n][n-1]+d[n-1][n]); 
                                     ^

信息

递交者
类型
递交
题目
P1014 旅行商简化版
语言
C++
递交时间
2015-04-21 20:15:42
评测时间
2015-04-21 20:15:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes