/ 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:11:14: error: 'scanf' was not declared in this scope
 scanf("%d",&t);
              ^
foo.cpp:15:20: error: 'memset' was not declared in this scope
 memset(f,0,sizeof f);
                    ^
foo.cpp:17: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:18: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:18: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:18: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:18: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:19:26: error: 'printf' was not declared in this scope
 printf("%lld\n",f[W-1][n]);
                          ^

信息

递交者
类型
递交
题目
P1932 重要的誓言
语言
C++
递交时间
2016-03-18 22:13:33
评测时间
2016-03-18 22:13:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes