/ Vijos /

记录详情

Compile Error

foo.cpp:54:2: error: stray '#' in program
 }#include<iostream>
  ^
foo.cpp:54:3: error: 'include' does not name a type
 }#include<iostream>
   ^
foo.cpp: In function 'int min(int, int)':
foo.cpp:58:12: error: redefinition of 'int min(int, int)'
 inline int min(int a,int b){
            ^
foo.cpp:5:12: error: 'int min(int, int)' previously defined here
 inline int min(int a,int b){
            ^
foo.cpp: In function 'int init()':
foo.cpp:61:12: error: redefinition of 'int init()'
 inline int init(){
            ^
foo.cpp:8:12: error: 'int init()' previously defined here
 inline int init(){
            ^
foo.cpp: At global scope:
foo.cpp:71:11: error: redefinition of 'const int maxn'
 const int maxn = 200001;
           ^
foo.cpp:18:11: error: 'const int maxn' previously defined here
 const int maxn = 200001;
           ^
foo.cpp:72:11: error: redefinition of 'int G [200001]'
 int G[maxn];
           ^
foo.cpp:19:5: error: 'int G [200001]' previously declared here
 int G[maxn];
     ^
foo.cpp:73:12: error: redefinition of 'int in [200001]'
 int in[maxn];
            ^
foo.cpp:20:5: error: 'int in [200001]' previously declared here
 int in[maxn];
     ^
foo.cpp:74:5: error: redefinition of 'int n'
 int n;
     ^
foo.cpp:21:5: error: 'int n' previously declared here
 int n;
     ^
foo.cpp:75:13: error: redefinition of 'bool FL [200001]'
 bool FL[maxn];
             ^
foo.cpp:22:6: error: 'bool FL [200001]' previously declared here
 bool FL[maxn];
      ^
foo.cpp:76:14: error: redefinition of 'bool vis [200001]'
 bool vis[maxn];
              ^
foo.cpp:23:6: error: 'bool vis [200001]' previously declared here
 bool vis[maxn];
      ^
foo.cpp: In function 'int dfs(int)':
foo.cpp:77:5: error: redefinition of 'int dfs(int)'
 int dfs(int s){
     ^
foo.cpp:24:5: error: 'int dfs(int)' previously defined here
 int dfs(int s){
     ^
foo.cpp: In function 'int chack()':
foo.cpp:83:5: error: redefinition of 'int chack()'
 int chack(){
     ^
foo.cpp:30:5: error: 'int chack()' previously defined here
 int chack(){
     ^
foo.cpp: In function 'int main()':
foo.cpp:87:5: error: redefinition of 'int main()'
 int main(){
     ^
foo.cpp:34:5: error: 'int main()' previously defined here
 int main(){
     ^

信息

递交者
类型
递交
题目
P1979 信息传递
语言
C++
递交时间
2016-11-11 19:55:19
评测时间
2016-11-11 19:55:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes