0_0_23047230_5245.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include <stdio.h>
^
0_0_23047230_5245.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include <math.h>
^
0_0_23047230_5245.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include <string.h>
^
0_0_23047230_5245.cpp:5:8: error: macro names must be identifiers
#define INF 2000000
^
0_0_23047230_5245.cpp:4:6: error: expected nested-name-specifier before '&' token
using namespace std;
^
0_0_23047230_5245.cpp:4:21: error: expected identifier before '&' token
using namespace std;
^
0_0_23047230_5245.cpp:4:26: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_23047230_5245.cpp:4:27: error: 'std' does not name a type
using namespace std;
^
0_0_23047230_5245.cpp:6:7: error: expected identifier before '&' token
struct Node//定义点
^
0_0_23047230_5245.cpp:6:12: error: invalid type in declaration before ';' token
struct Node//定义点
^
0_0_23047230_5245.cpp:6:12: error: 'nbsp' declared as reference but not initialized
0_0_23047230_5245.cpp:6:13: error: 'Node' does not name a type
struct Node//定义点
^
0_0_23047230_5245.cpp:9:2: error: 'point' does not name a type
}point[105];
^
0_0_23047230_5245.cpp:10:8: error: conflicting declaration 'double& nbsp'
double realdis[105][105];
^
0_0_23047230_5245.cpp:6:8: note: previous declaration as 'int& nbsp'
struct Node//定义点
^
0_0_23047230_5245.cpp:10:13: error: 'realdis' does not name a type
double realdis[105][105];
^
0_0_23047230_5245.cpp:11:5: error: redefinition of 'int& nbsp'
int n;
^
0_0_23047230_5245.cpp:6:8: note: 'int& nbsp' previously declared here
struct Node//定义点
^
0_0_23047230_5245.cpp:11:10: error: 'n' does not name a type
int n;
^
0_0_23047230_5245.cpp:12:8: error: conflicting declaration 'double& nbsp'
double ddistance(Node a,Node b)
^
0_0_23047230_5245.cpp:6:8: note: previous declaration as 'int& nbsp'
struct Node//定义点
^
0_0_23047230_5245.cpp:12:22: error: expected constructor, destructor, or type conversion before '(' token
double ddistance(Node a,Node b)
^
0_0_23047230_5245.cpp:12:33: error: 'a' does not name a type
double ddistance(Node a,Node b)
^
0_0_23047230_5245.cpp:12:45: error: 'b' does not name a type
double ddistance(Node a,Node b)
^
0_0_23047230_5245.cpp:16:8: error: conflicting declaration 'double& nbsp'
double prim()
^
0_0_23047230_5245.cpp:6:8: note: previous declaration as 'int& nbsp'
struct Node//定义点
^
0_0_23047230_5245.cpp: In function 'int prim()':
0_0_23047230_5245.cpp:18:10: error: 'nbsp' declared as reference but not initialized
double result=0;
^
0_0_23047230_5245.cpp:18:15: error: 'result' was not declared in this scope
double result=0;
^
0_0_23047230_5245.cpp:19:10: error: redeclaration of 'double& nbsp'
double p[105];
^
0_0_23047230_5245.cpp:18:10: note: 'double& nbsp' previously declared here
double result=0;
^
0_0_23047230_5245.cpp:19:15: error: 'p' was not declared in this scope
double p[105];
^
0_0_23047230_5245.cpp:20:8: error: conflicting declaration 'bool& nbsp'
bool used[105];
^
0_0_23047230_5245.cpp:18:10: note: previous declaration as 'double& nbsp'
double result=0;
^
0_0_23047230_5245.cpp:20:13: error: 'used' was not declared in this scope
bool used[105];
^
0_0_23047230_5245.cpp:21:11: error: 'nbsp' declared as reference but not initialized
for(int i=1;i<=n;i++)p[i] = realdis[1][i];
^
0_0_23047230_5245.cpp:21:16: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++)p[i] = realdis[1][i];
^
0_0_23047230_5245.cpp:21:23: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)p[i] = realdis[1][i];
^
0_0_23047230_5245.cpp:21:24: error: expected ')' before ';' token
for(int i=1;i<=n;i++)p[i] = realdis[1][i];
^
0_0_23047230_5245.cpp:21:25: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++)p[i] = realdis[1][i];
^
0_0_23047230_5245.cpp:21:39: error: expected primary-expression before '=' token
for(int i=1;i<=n;i++)p[i] = realdis[1][i];
^
0_0_23047230_5245.cpp:21:46: error: 'realdis' was not declared in this scope
for(int i=1;i<=n;i++)p[i] = realdis[1][i];
^
0_0_23047230_5245.cpp:22:29: error: 'memset' was not declared in this scope
memset(used,0,sizeof(used));
^
0_0_23047230_5245.cpp:23:11: error: 'nbsp' declared as reference but not initialized
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:23:23: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:23:24: error: expected ')' before ';' token
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:43:10: error: invalid conversion from 'double*' to 'int' [-fpermissive]
return result;
^
0_0_23047230_5245.cpp: At global scope:
0_0_23047230_5245.cpp:45:5: error: redefinition of 'int& nbsp'
int main()
^
0_0_23047230_5245.cpp:6:8: note: 'int& nbsp' previously declared here
struct Node//定义点
^
0_0_23047230_5245.cpp: In function 'int main()':
0_0_23047230_5245.cpp:47:9: error: 'cin' was not declared in this scope
while(cin>>n)
^
0_0_23047230_5245.cpp:47:14: error: 'n' was not declared in this scope
while(cin>>n)
^
0_0_23047230_5245.cpp:49:13: error: 'nbsp' declared as reference but not initialized
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:49:18: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:49:26: error: expected ')' before ';' token
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:49:27: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:57:13: error: 'nbsp' declared as reference but not initialized
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:57:26: error: expected ')' before ';' token
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:61:13: error: 'nbsp' declared as reference but not initialized
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:61:26: error: expected ')' before ';' token
for(int i=1;i<=n;i++)
^
0_0_23047230_5245.cpp:68:28: error: 'printf' was not declared in this scope
printf("%.2lf\n",prim());
^
0_0_23047230_5245.cpp:70:10: error: invalid conversion from 'int*' to 'int' [-fpermissive]
return 0;
^
|