0_0_20375082_24940.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_20375082_24940.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_20375082_24940.cpp:3:6: error: expected nested-name-specifier before '&' token
using namespace std;
^
0_0_20375082_24940.cpp:3:21: error: expected identifier before '&' token
using namespace std;
^
0_0_20375082_24940.cpp:3:26: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_20375082_24940.cpp:3:27: error: 'std' does not name a type
using namespace std;
^
0_0_20375082_24940.cpp:4:5: error: 'nbsp' declared as reference but not initialized
int pos[105];
^
0_0_20375082_24940.cpp:4:10: error: 'pos' does not name a type
int pos[105];
^
0_0_20375082_24940.cpp:5:8: error: conflicting declaration 'double& nbsp'
double dp[105];
^
0_0_20375082_24940.cpp:4:5: note: previous declaration as 'int& nbsp'
int pos[105];
^
0_0_20375082_24940.cpp:5:13: error: 'dp' does not name a type
double dp[105];
^
0_0_20375082_24940.cpp:6:5: error: redefinition of 'int& nbsp'
int L;
^
0_0_20375082_24940.cpp:4:5: note: 'int& nbsp' previously declared here
int pos[105];
^
0_0_20375082_24940.cpp:6:10: error: 'L' does not name a type
int L;
^
0_0_20375082_24940.cpp:7:5: error: redefinition of 'int& nbsp'
int N,C,T;
^
0_0_20375082_24940.cpp:4:5: note: 'int& nbsp' previously declared here
int pos[105];
^
0_0_20375082_24940.cpp:7:10: error: 'N' does not name a type
int N,C,T;
^
0_0_20375082_24940.cpp:8:5: error: redefinition of 'int& nbsp'
int VR,VT1,VT2,i,j;
^
0_0_20375082_24940.cpp:4:5: note: 'int& nbsp' previously declared here
int pos[105];
^
0_0_20375082_24940.cpp:8:10: error: 'VR' does not name a type
int VR,VT1,VT2,i,j;
^
0_0_20375082_24940.cpp:9:5: error: redefinition of 'int& nbsp'
int main()
^
0_0_20375082_24940.cpp:4:5: note: 'int& nbsp' previously declared here
int pos[105];
^
0_0_20375082_24940.cpp: In function 'int main()':
0_0_20375082_24940.cpp:11:26: error: 'cin' was not declared in this scope
while(cin>>L)
^
0_0_20375082_24940.cpp:11:31: error: 'L' was not declared in this scope
while(cin>>L)
^
0_0_20375082_24940.cpp:13:34: error: 'cin' was not declared in this scope
cin>>N>>C>>T;
^
0_0_20375082_24940.cpp:13:39: error: 'N' was not declared in this scope
cin>>N>>C>>T;
^
0_0_20375082_24940.cpp:13:42: error: 'C' was not declared in this scope
cin>>N>>C>>T;
^
0_0_20375082_24940.cpp:13:45: error: 'T' was not declared in this scope
cin>>N>>C>>T;
^
0_0_20375082_24940.cpp:14:41: error: 'VR' was not declared in this scope
cin>>VR>>VT1>>VT2;
^
0_0_20375082_24940.cpp:14:45: error: 'VT1' was not declared in this scope
cin>>VR>>VT1>>VT2;
^
0_0_20375082_24940.cpp:14:50: error: 'VT2' was not declared in this scope
cin>>VR>>VT1>>VT2;
^
0_0_20375082_24940.cpp:15:16: error: 'nbsp' declared as reference but not initialized
for(int i=1; i<=N; i++)
^
0_0_20375082_24940.cpp:15:21: error: 'i' was not declared in this scope
for(int i=1; i<=N; i++)
^
0_0_20375082_24940.cpp:15:30: error: expected ')' before ';' token
for(int i=1; i<=N; i++)
^
0_0_20375082_24940.cpp:15:31: error: 'i' was not declared in this scope
for(int i=1; i<=N; i++)
^
0_0_20375082_24940.cpp:16:19: error: 'pos' was not declared in this scope
cin>>pos[i];
^
0_0_20375082_24940.cpp:18:56: error: 'L' was not declared in this scope
pos[N+1]= L;
^
0_0_20375082_24940.cpp:19:47: error: expected primary-expression before '>' token
for(i=0; i<< >105; i++)
^
0_0_20375082_24940.cpp:19:51: error: expected ')' before ';' token
for(i=0; i<< >105; i++)
^
0_0_20375082_24940.cpp:20:61: error: 'dp' was not declared in this scope
dp[i]=0xfffffff;
^
0_0_20375082_24940.cpp:22:41: error: 'nbsp' declared as reference but not initialized
double rab=(L*1.0/VR); //兔子到达终点需要花的时间
^
0_0_20375082_24940.cpp:22:46: error: 'rab' was not declared in this scope
double rab=(L*1.0/VR); //兔子到达终点需要花的时间
^
0_0_20375082_24940.cpp:23:54: error: expected ')' before ';' token
for(i=1; i<=N+1; i++) //从第一个加油站开始,每次往后搜
^
0_0_20375082_24940.cpp:25:67: error: 'j' was not declared in this scope
for(j=0; j<< i; j++)
^
0_0_20375082_24940.cpp:25:85: error: expected ')' before ';' token
for(j=0; j<< i; j++)
^
0_0_20375082_24940.cpp:25:94: error: 'j' was not declared in this scope
for(j=0; j<< i; j++)
^
0_0_20375082_24940.cpp:27:94: error: 'nbsp' declared as reference but not initialized
double temp;
^
0_0_20375082_24940.cpp:27:99: error: 'temp' was not declared in this scope
double temp;
^
0_0_20375082_24940.cpp:28:98: error: expected ')' before ';' token
if(pos[i]-pos[j] <= C) //从j加了油后可以全程加速去
^
0_0_20375082_24940.cpp:28:99: error: expected primary-expression before '<=' token
if(pos[i]-pos[j] <= C) //从j加了油后可以全程加速去
^
0_0_20375082_24940.cpp:28:108: error: expected ';' before ')' token
if(pos[i]-pos[j] <= C) //从j加了油后可以全程加速去
^
0_0_20375082_24940.cpp:30:72: error: 'else' without a previous 'if'
else
^
0_0_20375082_24940.cpp:33:127: error: expected primary-expression before '-=' token
|