Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:2: error: expected initializer before 'for'
  for (abcd=1000;abcd<10000;a++)
  ^~~
/in/foo.cc:11:21: warning: statement has no effect [-Wunused-value]
  for (abcd=1000;abcd<10000;a++)
                 ~~~~^~~~~~
/in/foo.cc:11:31: error: expected ';' before ')' token
  for (abcd=1000;abcd<10000;a++)
                               ^
/in/foo.cc:8:15: warning: unused variable 'ab' [-Wunused-variable]
  int a,b,abcd,ab,cd,count=0,i=0;
               ^~
/in/foo.cc:8:18: warning: unused variable 'cd' [-Wunused-variable]
  int a,b,abcd,ab,cd,count=0,i=0;
                  ^~
/in/foo.cc:8:21: warning: unused variable 'count' [-Wunused-variable]
  int a,b,abcd,ab,cd,count=0,i=0;
                     ^~~~~
/in/foo.cc:8:29: warning: unused variable 'i' [-Wunused-variable]
  int a,b,abcd,ab,cd,count=0,i=0;
                             ^
/in/foo.cc:28:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
P1113 满足条件的4位整数(2)
语言
C++
递交时间
2022-06-12 15:49:58
评测时间
2022-06-12 15:49:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes