记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:21: error: conflicting declaration 'int s'
  int s1,s2,s3,s[10],s=0;
                     ^
/in/foo.cc:9:15: note: previous declaration as 'int s [10]'
  int s1,s2,s3,s[10],s=0;
               ^
/in/foo.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     for(s1=123;s<330;s++)
                  ^~~
/in/foo.cc:10:23: error: lvalue required as increment operand
     for(s1=123;s<330;s++)
                       ^~
/in/foo.cc:12:10: error: 'a' was not declared in this scope
   memset(a,0,sizeof(a);
          ^
/in/foo.cc:14:7: error: too few arguments to function 'void H(int, int*)'
   H(s1); H(s2); H(s3);
       ^
/in/foo.cc:3:6: note: declared here
 void H(int x,int a[])
      ^
/in/foo.cc:14:14: error: too few arguments to function 'void H(int, int*)'
   H(s1); H(s2); H(s3);
              ^
/in/foo.cc:3:6: note: declared here
 void H(int x,int a[])
      ^
/in/foo.cc:14:21: error: too few arguments to function 'void H(int, int*)'
   H(s1); H(s2); H(s3);
                     ^
/in/foo.cc:3:6: note: declared here
 void H(int x,int a[])
      ^
/in/foo.cc:18:6: error: 'j' was not declared in this scope
   if(j==10) s++;
      ^
/in/foo.cc:18:14: error: lvalue required as increment operand
   if(j==10) s++;
              ^~

信息

递交者
类型
递交
题目
P1160 巧妙填数
语言
C++
递交时间
2021-01-26 15:24:04
评测时间
2021-01-26 15:24:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes