/ Vijos /

记录详情

Compile Error

/in/foo.cc:9:1: error: 'queue' does not name a type
 queue<int> r;
 ^~~~~
/in/foo.cc: In function 'void topu()':
/in/foo.cc:19:34: error: 'r' was not declared in this scope
  for(int i=1;i<=n;i++)if(v[i]==0)r.push(i);
                                  ^
/in/foo.cc:20:9: error: 'r' was not declared in this scope
  while(!r.empty())
         ^
/in/foo.cc:23:7: error: 'o' was not declared in this scope
   a[++o]=x;
       ^
/in/foo.cc:30:5: error: 'o' was not declared in this scope
  if(o<n)cout<<"-1";
     ^
/in/foo.cc:30:9: error: 'cout' was not declared in this scope
  if(o<n)cout<<"-1";
         ^~~~
/in/foo.cc:30:9: note: suggested alternative:
In file included from /in/foo.cc:1:0:
/usr/include/c++/6/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
/in/foo.cc:31:28: error: 'cout' was not declared in this scope
  else for(int i=1;i<=n;i++)cout<<a[i]<<" ";
                            ^~~~
/in/foo.cc:31:28: note: suggested alternative:
In file included from /in/foo.cc:1:0:
/usr/include/c++/6/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:2: error: 'cin' was not declared in this scope
  cin>>n>>m;
  ^~~
/in/foo.cc:35:2: note: suggested alternative:
In file included from /in/foo.cc:1:0:
/usr/include/c++/6/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^~~
/in/foo.cc:40:10: error: too few arguments to function 'void add(int, int, int)'
   add(c,b);
          ^
/in/foo.cc:13:6: note: declared here
 void add(int x,int y,int z)
      ^~~

信息

递交者
类型
自测
题目
P1790 拓扑编号
语言
C++
递交时间
2018-07-13 10:44:50
评测时间
2018-07-13 10:44:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes