0_0_26567164_28495.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include <stdio.h> #include <string.h> #define INT_MAX 20000 int main(void) { int n,i,j,k,map[27][27]; float value[27],temp; char from; while (scanf("%d",&n) != EOF) { memset(value,0,sizeof(value)); for (i=0;i<=26;i++) for (j=0;j<=26;j++) map[i][j] = INT_MAX; getchar(); //这里原来么注意到 for (i=0;i<n;i++) { scanf("%c",&from); scanf("%f",&temp); j = from - 'A' + 1; value[j] = temp; while (1) { from = getchar(); if (from == '/n') break; if (from == '*') { map[j][0] = 1.0; } if (from >= 'A' && from <= 'Z') map[j][from-'A'+1] = 1; } } for (k=0;k<=26;k++) for (i=0;i<=26;i++) for (j=0;j<=26;j++) if (map[i][j]>map[i][k]+map[k][j]) map[i][j] = map[i][k] + map[k][j]; for (i=1;i<=26;i++) { if (map[i][0] == INT_MAX) map[i][0] = 0; temp = 1.0; for (j=1;j<map[i][0];j++) temp = 0.95*temp; value[i] = value[i] * temp; } temp = 0.0; j = 0; for (i=1;i<=26;i++) { if (value[i]>temp) { temp = value[i]; j = i; } } from = j+'A'-1; printf("Import from %c/n",from); } return 0; }
^
|