0_0_32776689_20144.cpp:46:2: error: stray '\243' in program
double L;
^
0_0_32776689_20144.cpp:46:2: error: stray '\273' in program
0_0_32776689_20144.cpp:78:4: error: stray '\243' in program
cout << "Good job,rabbit!" << endl;
^
0_0_32776689_20144.cpp:78:4: error: stray '\273' in program
0_0_32776689_20144.cpp: In function 'double Min(double, double)':
0_0_32776689_20144.cpp:43:2: error: named return values are no longer supported
return x > y ? y : x;
^
0_0_32776689_20144.cpp:47:2: error: expected initializer before 'int'
int n, i, j;
^
0_0_32776689_20144.cpp:51:16: error: 'L' was not declared in this scope
while (cin >> L)//输入跑道长度 {
^
0_0_32776689_20144.cpp:52:10: error: 'n' was not declared in this scope
cin >> n >> electricity_l >> electricity_t;//输入加电站的个数、电动车最大行驶距离、电动车的充电时间
^
0_0_32776689_20144.cpp:54:8: error: 'i' was not declared in this scope
for (i = 1; i <= n; i++)//输入各个加电站距离起点的位置
^
0_0_32776689_20144.cpp:54:20: error: 'n' was not declared in this scope
for (i = 1; i <= n; i++)//输入各个加电站距离起点的位置
^
0_0_32776689_20144.cpp:56:5: error: 'n' was not declared in this scope
s[n + 1] = L;//把第n+1个加电站设为终点,长度为L
^
0_0_32776689_20144.cpp:56:14: error: 'L' was not declared in this scope
s[n + 1] = L;//把第n+1个加电站设为终点,长度为L
^
0_0_32776689_20144.cpp:59:8: error: 'i' was not declared in this scope
for (i = 1; i <= n + 1; i++){
^
0_0_32776689_20144.cpp:61:9: error: 'j' was not declared in this scope
for (j = 0; j < i; j++){
^
0_0_32776689_20144.cpp:79:2: error: expected ';' before '}' token
}
^
0_0_32776689_20144.cpp: At global scope:
0_0_32776689_20144.cpp:80:2: error: expected unqualified-id before 'return'
return 0;
^
0_0_32776689_20144.cpp:81:1: error: expected declaration before '}' token
}
^
|