/ Vijos /

记录详情

Compile Error

/in/foo.cc:69:2: error: stray '#' in program
 }#include<iostream>
  ^
/in/foo.cc:69:3: error: 'include' does not name a type
 }#include<iostream>
   ^~~~~~~
/in/foo.cc:76:8: error: redefinition of 'struct node'
 struct node
        ^~~~
/in/foo.cc:8:8: error: previous definition of 'struct node'
 struct node
        ^~~~
/in/foo.cc:79:14: error: conflicting declaration 'int book [1000001]'
 }book[1000001];
              ^
/in/foo.cc:11:2: note: previous declaration as 'node book [1000001]'
 }book[1000001];
  ^~~~
/in/foo.cc:81:5: error: redefinition of 'int n'
 int n,m,f;
     ^
/in/foo.cc:13:5: note: 'int n' previously declared here
 int n,m,f;
     ^
/in/foo.cc:81:7: error: redefinition of 'int m'
 int n,m,f;
       ^
/in/foo.cc:13:7: note: 'int m' previously declared here
 int n,m,f;
       ^
/in/foo.cc:81:9: error: redefinition of 'int f'
 int n,m,f;
         ^
/in/foo.cc:13:9: note: 'int f' previously declared here
 int n,m,f;
         ^
/in/foo.cc:82:17: error: redefinition of 'int room [1000001]'
 int room[1000001];
                 ^
/in/foo.cc:14:5: note: 'int room [1000001]' previously declared here
 int room[1000001];
     ^~~~
/in/foo.cc:83:22: error: redefinition of 'long long int cf [10000001]'
 long long cf[10000001];
                      ^
/in/foo.cc:15:11: note: 'long long int cf [10000001]' previously declared here
 long long cf[10000001];
           ^~
/in/foo.cc:84:11: error: redefinition of 'long long int minn'
 long long minn=MAXN;
           ^~~~
/in/foo.cc:16:11: note: 'long long int minn' previously defined here
 long long minn=MAXN;
           ^~~~
/in/foo.cc: In function 'bool check(long long int)':
/in/foo.cc:86:6: error: redefinition of 'bool check(long long int)'
 bool check(long long k)
      ^~~~~
/in/foo.cc:18:6: note: 'bool check(long long int)' previously defined here
 bool check(long long k)
      ^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:108:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:40:5: note: 'int main()' previously defined here
 int main()
     ^~~~

信息

递交者
类型
递交
题目
P1782 借教室
语言
C++
递交时间
2018-10-06 21:41:51
评测时间
2018-10-06 21:41:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes