/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:41:20: error: 'sizeoff' was not declared in this scope
         memset(f,0,sizeoff);
                    ^
foo.cpp:43: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:43: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:45:14: error: 'inti' 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:45: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:49: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:49: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:49: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:49: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:51:34: warning: unknown conversion type character 'l' in format [-Wformat=]
         printf("%lld\n",f[W-1][n]);
                                  ^
foo.cpp:51:34: warning: too many arguments for format [-Wformat-extra-args]

信息

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