/ Vijos /

记录详情

Compile Error

/in/foo.cc:30:2: error: stray '#' in program
 }#include<cstdio> 
  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:19:38: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
       f[i][j]=max(f[i][j-1],f[i+(1<<j-1)][j-1]);
                                     ~^~
/in/foo.cc: At global scope:
/in/foo.cc:30:3: error: 'include' does not name a type
 }#include<cstdio> 
   ^~~~~~~
/in/foo.cc:35:17: error: redefinition of 'int f [100100][30]'
 int f[100100][30],x,p,n,m,l,r;
                 ^
/in/foo.cc:6:5: note: 'int f [100100][30]' previously declared here
 int f[100100][30],x,p,n,m,l,r;
     ^
/in/foo.cc:35:19: error: redefinition of 'int x'
 int f[100100][30],x,p,n,m,l,r;
                   ^
/in/foo.cc:6:19: note: 'int x' previously declared here
 int f[100100][30],x,p,n,m,l,r;
                   ^
/in/foo.cc:35:21: error: redefinition of 'int p'
 int f[100100][30],x,p,n,m,l,r;
                     ^
/in/foo.cc:6:21: note: 'int p' previously declared here
 int f[100100][30],x,p,n,m,l,r;
                     ^
/in/foo.cc:35:23: error: redefinition of 'int n'
 int f[100100][30],x,p,n,m,l,r;
                       ^
/in/foo.cc:6:23: note: 'int n' previously declared here
 int f[100100][30],x,p,n,m,l,r;
                       ^
/in/foo.cc:35:25: error: redefinition of 'int m'
 int f[100100][30],x,p,n,m,l,r;
                         ^
/in/foo.cc:6:25: note: 'int m' previously declared here
 int f[100100][30],x,p,n,m,l,r;
                         ^
/in/foo.cc:35:27: error: redefinition of 'int l'
 int f[100100][30],x,p,n,m,l,r;
                           ^
/in/foo.cc:6:27: note: 'int l' previously declared here
 int f[100100][30],x,p,n,m,l,r;
                           ^
/in/foo.cc:35:29: error: redefinition of 'int r'
 int f[100100][30],x,p,n,m,l,r;
                             ^
/in/foo.cc:6:29: note: 'int r' previously declared here
 int f[100100][30],x,p,n,m,l,r;
                             ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:36:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:7:5: note: 'int main()' previously defined here
 int main()
     ^~~~
/in/foo.cc:48:38: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
       f[i][j]=max(f[i][j-1],f[i+(1<<j-1)][j-1]);
                                     ~^~

信息

递交者
类型
递交
题目
P1514 天才的记忆
语言
C++
递交时间
2020-03-31 15:03:40
评测时间
2020-03-31 15:03:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes