0_0_33365147_13978.cpp: In function 'double calc(int, int, int)':
0_0_33365147_13978.cpp:22:2: error: 'nbsp' was not declared in this scope
if (kind[a] == 'R' || kind[a] == 'L')
^
0_0_33365147_13978.cpp:29:43: error: 'else' without a previous 'if'
else r = (m - b) * 10.0 + 5 + len[a];
^
0_0_33365147_13978.cpp:32:29: error: 'else' without a previous 'if'
else return oo; // 不可达,返回无穷大
^
0_0_33365147_13978.cpp:34:15: error: 'else' without a previous 'if'
else
^
0_0_33365147_13978.cpp:38:29: error: 'else' without a previous 'if'
else
^
0_0_33365147_13978.cpp: In function 'double DP()':
0_0_33365147_13978.cpp:46:2: error: 'nbsp' was not declared in this scope
for (int i = 0; i <= m; ++i)
^
0_0_33365147_13978.cpp:47:35: error: 'i' was not declared in this scope
dp[0][i] = 0.0;
^
0_0_33365147_13978.cpp:52:49: error: 'j' was not declared in this scope
dp[i][j] = oo;
^
0_0_33365147_13978.cpp:55:90: error: 'k' was not declared in this scope
dp[i][j] = min(dp[i][j], dp[i-1][k] + calc(i, k, j));
^
0_0_33365147_13978.cpp: In function 'int main()':
0_0_33365147_13978.cpp:68:2: error: 'nbsp' was not declared in this scope
while (scanf("%d %d", &n, &m))
^
0_0_33365147_13978.cpp:71:43: error: break statement not within loop or switch
break;
^
0_0_33365147_13978.cpp:75:67: error: 'i' was not declared in this scope
scanf("\n%c %lf", &kind[i], &len[i]);
^
|