0_0_13797794_13016.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13797794_13016.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13797794_13016.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13797794_13016.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13797794_13016.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13797794_13016.cpp:6:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13797794_13016.cpp: In member function 'void point::Read()':
0_0_13797794_13016.cpp:13:21: error: 'scanf' was not declared in this scope
scanf("%d%d",&x,&y);
^
0_0_13797794_13016.cpp: At global scope:
0_0_13797794_13016.cpp:23:2: error: expected type-specifier before '{' token
{
^
0_0_13797794_13016.cpp: In function 'double Distance(const point&, const point&)':
0_0_13797794_13016.cpp:30:65: error: 'sqrt' was not declared in this scope
return sqrt( (p1.x-p2.x)*(p1.x-p2.x) + (p1.y-p2.y)*(p1.y-p2.y) );
^
0_0_13797794_13016.cpp: In function 'double Kruskal(int)':
0_0_13797794_13016.cpp:49:24: error: 'sort' was not declared in this scope
sort(edges+1,edges+m+1);
^
0_0_13797794_13016.cpp:51:2: error: expected ';' before '{' token
{
^
0_0_13797794_13016.cpp:51:2: error: expected primary-expression before '{' token
0_0_13797794_13016.cpp:51:2: error: expected ')' before '{' token
0_0_13797794_13016.cpp: In function 'int main()':
0_0_13797794_13016.cpp:64:2: error: 'cinnk' was not declared in this scope
cinnk;
^
0_0_13797794_13016.cpp:66:3: error: expected ';' before 'points'
points[i].Read();
^
0_0_13797794_13016.cpp:66:19: error: expected ')' before ';' token
points[i].Read();
^
0_0_13797794_13016.cpp:68:3: error: expected ';' before 'for'
for(j=1;j
^
0_0_13797794_13016.cpp:68:3: error: expected primary-expression before 'for'
0_0_13797794_13016.cpp:68:3: error: expected ')' before 'for'
0_0_13797794_13016.cpp:69:4: error: expected ';' before 'if'
if(i!=j)
^
0_0_13797794_13016.cpp:69:4: error: expected primary-expression before 'if'
0_0_13797794_13016.cpp:69:4: error: expected ')' before 'if'
0_0_13797794_13016.cpp:71:2: error: 'cout' was not declared in this scope
cout
^
|