/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:10:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<strlen(a);i++) x[i]=a[strlen(a)-i-1]-'0';
              ^
foo.cpp:11:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(j=0;j<strlen(b);j++) y[j]=b[strlen(b)-j-1]-'0';
              ^
foo.cpp:12:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<strlen(a);i++)
              ^
foo.cpp:13:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(j=0;j<strlen(b);j++)
                  ^
foo.cpp:15:14: error: incompatible types in assignment of 'int' to 'int [1000]'
             s+=x[i]*y[j];
              ^
foo.cpp:16:18: error: invalid operands of types 'int [1000]' and 'int' to binary 'operator/'
             s+=s/10;
                  ^
foo.cpp:17:14: error: invalid operands of types 'int [1000]' and 'int' to binary 'operator%'
             s%=10;
              ^
foo.cpp:17:14: error:   in evaluation of 'operator%=(int [1000], int)'
foo.cpp:23:4: error: incompatible types in assignment of 'int' to 'int [1000]'
   s+=s[i]/10;
    ^
foo.cpp:29:4: error: incompatible types in assignment of 'int' to 'int [1000]'
   s+=s[i]/10;
    ^

信息

递交者
类型
递交
题目
P1192 星际青蛙(木木版)
语言
C++
递交时间
2015-08-27 21:13:16
评测时间
2015-08-27 21:13:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes