记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:2: error: 'cin' was not declared in this scope
  cin>>C>>R;
  ^~~
/in/foo.cc:6:2: note: suggested alternative:
In file included from /in/foo.cc:1:0:
/usr/include/c++/7/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^~~
/in/foo.cc:9:2: error: 'MGraph' was not declared in this scope
  MGraph M;
  ^~~~~~
/in/foo.cc:9:2: note: suggested alternative: 'isgraph'
  MGraph M;
  ^~~~~~
  isgraph
/in/foo.cc:10:2: error: 'M' was not declared in this scope
  M.DFSTraverse();
  ^
/in/foo.cc: At global scope:
/in/foo.cc:32:11: error: expected ')' before 'v'
  MGraph(T v[],int n,int e);
           ^
/in/foo.cc: In member function 'void MGraph::DFS(int, bool*)':
/in/foo.cc:21:3: error: 'cout' was not declared in this scope
   cout<<vexs[v];
   ^~~~
/in/foo.cc:21:3: note: suggested alternative:
In file included from /in/foo.cc:1:0:
/usr/include/c++/7/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
/in/foo.cc:21:9: error: 'vexs' was not declared in this scope
   cout<<vexs[v];
         ^~~~
/in/foo.cc:21:9: note: suggested alternative: 'gets'
   cout<<vexs[v];
         ^~~~
         gets
/in/foo.cc:25:7: error: 'edge' was not declared in this scope
    if(edge[v][i]==1&&!visited[i])
       ^~~~
/in/foo.cc:25:7: note: suggested alternative: 'edgenum'
    if(edge[v][i]==1&&!visited[i])
       ^~~~
       edgenum

信息

递交者
类型
递交
题目
2-9 大卖场的货架
比赛
南师大2018年蓝桥杯热身赛
语言
C++
递交时间
2018-12-12 16:15:43
评测时间
2018-12-12 16:15:48
评测机
分数
0
总耗时
236ms
峰值内存
29.312 MiB