0_0_13802548_25255.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13802548_25255.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13802548_25255.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13802548_25255.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13802548_25255.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13802548_25255.cpp: In member function 'void Point::Read()':
0_0_13802548_25255.cpp:20:40: error: 'scanf' was not declared in this scope
scanf("%lf%lf%lf",&x,&y,&weight);
^
0_0_13802548_25255.cpp: In function 'int main()':
0_0_13802548_25255.cpp:33:19: error: 'srand' was not declared in this scope
srand(19980531);
^
0_0_13802548_25255.cpp:34:5: error: 'cin' was not declared in this scope
cin points;
^
0_0_13802548_25255.cpp:36:9: error: expected ';' before 'point'
point[i].Read();
^
0_0_13802548_25255.cpp:36:24: error: expected ')' before ';' token
point[i].Read();
^
0_0_13802548_25255.cpp:37:24: error: 'i' was not declared in this scope
now.x += point[i].x;
^
0_0_13802548_25255.cpp: At global scope:
0_0_13802548_25255.cpp:40:5: error: 'now' does not name a type
now.x /= points,now.y /= points;
^
0_0_13802548_25255.cpp:41:5: error: 'ans' does not name a type
ans.total_weight = INF;
^
0_0_13802548_25255.cpp:42:25: error: expected constructor, destructor, or type conversion before ';' token
SinulatedAnnealing();
^
0_0_13802548_25255.cpp:43:11: error: expected constructor, destructor, or type conversion before '(' token
printf("%.3lf %.3lf\n",ans.x,ans.y);
^
0_0_13802548_25255.cpp:44:5: error: expected unqualified-id before 'return'
return 0;
^
0_0_13802548_25255.cpp:45:1: error: expected declaration before '}' token
}
^
|