/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <cstdio> include <cstring> include <cstdlib>
 ^
foo.cpp: In function 'int main()':
foo.cpp:15:14: error: 'scanf' was not declared in this scope
 scanf("%d",&t);
              ^
foo.cpp:19:20: error: 'memset' was not declared in this scope
 memset(f,0,sizeof f);
                    ^
foo.cpp:21:82: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 for (int i=0;i<W;i++) for (int j=0;j<=n;j++) for (int k=0;k<=c;k++) if (j+k*(1<<i+1)>n) break;
                                                                                  ^
foo.cpp:22:21: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 else f[i+1][j+k(1<<i+1)]=(f[i+1][j+k(1<<i+1)]+f[i][j])%LM;
                     ^
foo.cpp:22:23: error: 'k' cannot be used as a function
 else f[i+1][j+k(1<<i+1)]=(f[i+1][j+k(1<<i+1)]+f[i][j])%LM;
                       ^
foo.cpp:22:42: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 else f[i+1][j+k(1<<i+1)]=(f[i+1][j+k(1<<i+1)]+f[i][j])%LM;
                                          ^
foo.cpp:22:44: error: 'k' cannot be used as a function
 else f[i+1][j+k(1<<i+1)]=(f[i+1][j+k(1<<i+1)]+f[i][j])%LM;
                                            ^
foo.cpp:23:26: error: 'printf' was not declared in this scope
 printf("%lld\n",f[W-1][n]);
                          ^

信息

递交者
类型
递交
题目
P1932 重要的誓言
语言
C++
递交时间
2016-11-16 11:40:06
评测时间
2016-11-16 11:40:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes