/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:47:41: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
                         scanf("%I64d",&t);
                                         ^
/in/foo.cc:69:37: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
                 printf("%I64d\n",ans);
                                     ^
/in/foo.cc: At global scope:
/in/foo.cc:73:9: error: expected unqualified-id before 'for'
         for(int i=1;i<=m;i++) {
         ^~~
/in/foo.cc:73:21: error: 'i' does not name a type
         for(int i=1;i<=m;i++) {
                     ^
/in/foo.cc:73:26: error: 'i' does not name a type
         for(int i=1;i<=m;i++) {
                          ^
/in/foo.cc:85:9: error: expected unqualified-id before 'for'
         for (int i=1;i<=n;i++)
         ^~~
/in/foo.cc:85:22: error: 'i' does not name a type
         for (int i=1;i<=n;i++)
                      ^
/in/foo.cc:85:27: error: 'i' does not name a type
         for (int i=1;i<=n;i++)
                           ^
/in/foo.cc:87:15: error: expected constructor, destructor, or type conversion before '(' token
         printf("%I64d\n",ans);
               ^
/in/foo.cc:88:5: error: expected declaration before '}' token
     }
     ^

信息

递交者
类型
递交
题目
P1243 生产产品
语言
C++
递交时间
2018-05-08 18:57:05
评测时间
2018-05-08 18:57:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes