/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:17:20: error: 'sizeoff' was not declared in this scope
         memset(f,0,sizeoff);
                    ^
foo.cpp:18:14: error: 'inti' was not declared in this scope
         for (inti=0;i<=c;i++) if (i>n) break; else f[0][i]=1;
              ^
foo.cpp:18:21: error: 'i' was not declared in this scope
         for (inti=0;i<=c;i++) if (i>n) break; else f[0][i]=1;
                     ^
foo.cpp:19:21: error: 'i' was not declared in this scope
         for (inti=0;i<W;i++) for (int j=0;j<=n;j++) for (int k=0;k<=c;k++) 
                     ^
foo.cpp:21:9: error: 'elsef' was not declared in this scope
         elsef[i+1][j+k*(1<<i+1)]=(f[i+1][j+k*(1<<i+1)]+f[i][j])%LM;
         ^
foo.cpp:21:15: error: 'i' was not declared in this scope
         elsef[i+1][j+k*(1<<i+1)]=(f[i+1][j+k*(1<<i+1)]+f[i][j])%LM;
               ^
foo.cpp:21:20: error: 'j' was not declared in this scope
         elsef[i+1][j+k*(1<<i+1)]=(f[i+1][j+k*(1<<i+1)]+f[i][j])%LM;
                    ^
foo.cpp:21:22: error: 'k' was not declared in this scope
         elsef[i+1][j+k*(1<<i+1)]=(f[i+1][j+k*(1<<i+1)]+f[i][j])%LM;
                      ^
foo.cpp:22:34: warning: unknown conversion type character 'l' in format [-Wformat=]
         printf("%lld\n",f[W-1][n]);
                                  ^
foo.cpp:22:34: warning: too many arguments for format [-Wformat-extra-args]

信息

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