/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <cstdio> include <cmath> include <cstring> include <iostream> include <algorithm> include <vector> define MAXN 110 define MAX 1000000 define INF 10000000 
 ^
foo.cpp:4:8: error: 'MAXN' was not declared in this scope
 int ma[MAXN][MAXN];
        ^
foo.cpp:4:14: error: 'MAXN' was not declared in this scope
 int ma[MAXN][MAXN];
              ^
foo.cpp:5:7: error: 'MAXN' was not declared in this scope
 int c[MAXN];
       ^
foo.cpp:6:7: error: 'MAXN' was not declared in this scope
 int f[MAXN][MAXN];
       ^
foo.cpp:6:13: error: 'MAXN' was not declared in this scope
 int f[MAXN][MAXN];
             ^
foo.cpp: In function 'int main()':
foo.cpp:10:6: error: 'ma' was not declared in this scope
 fill(ma[i],ma[i]+101,INF);
      ^
foo.cpp:10:22: error: 'INF' was not declared in this scope
 fill(ma[i],ma[i]+101,INF);
                      ^
foo.cpp:10:25: error: 'fill' was not declared in this scope
 fill(ma[i],ma[i]+101,INF);
                         ^
foo.cpp:13:34: error: 'scanf' was not declared in this scope
 scanf("%d%d%d%d%d",&n,&k,&m,&s,&t);
                                  ^
foo.cpp:15:13: error: 'c' was not declared in this scope
 scanf("%d",&c[i]);
             ^
foo.cpp:19:15: error: 'f' was not declared in this scope
  scanf ("%d",&f[i][j]);
               ^
foo.cpp:22:10: error: 'cin' was not declared in this scope
          cin>>x>>y>>z;
          ^
foo.cpp:23:16: error: 'ma' was not declared in this scope
          if (z<ma[x][y]) 
                ^
foo.cpp:28:16: error: 'f' was not declared in this scope
             if(f[c[i]][c[j]])ma[i][j]=INF;
                ^
foo.cpp:28:18: error: 'c' was not declared in this scope
             if(f[c[i]][c[j]])ma[i][j]=INF;
                  ^
foo.cpp:28:30: error: 'ma' was not declared in this scope
             if(f[c[i]][c[j]])ma[i][j]=INF;
                              ^
foo.cpp:28:39: error: 'INF' was not declared in this scope
             if(f[c[i]][c[j]])ma[i][j]=INF;
                                       ^
foo.cpp:33:21: error: 'ma' was not declared in this scope
                     ma[i][j]=min(ma[i][j],ma[i][k]+ma[k][j]);
                     ^
foo.cpp:33:60: error: 'min' was not declared in this scope
                     ma[i][j]=min(ma[i][j],ma[i][k]+ma[k][j]);
                                                            ^
foo.cpp:38:19: error: 'ma' was not declared in this scope
      printf ("%d",ma[s][t]);
                   ^
foo.cpp:38:27: error: 'printf' was not declared in this scope
      printf ("%d",ma[s][t]);
                           ^

信息

递交者
类型
递交
题目
P1794 文化之旅
语言
C++
递交时间
2015-10-15 18:07:46
评测时间
2015-10-15 18:07:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes