记录详情

Compile Error

/in/foo.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
/in/foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
/in/foo.c: In function 'main':
/in/foo.c:11:18: error: lvalue required as left operand of assignment
   11 |            if(x%i=0)
      |                  ^
/in/foo.c:15:10: error: 'cout' undeclared (first use in this function)
   15 |          cout<<"sum="<<sum<<endl;
      |          ^~~~
/in/foo.c:15:10: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:15:29: error: 'endl' undeclared (first use in this function)
   15 |          cout<<"sum="<<sum<<endl;
      |                             ^~~~
/in/foo.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^

信息

递交者
类型
递交
题目
A3-1 素数专题:因子的和
比赛
2025程序设计与竞赛作业赛第一场(整装出发)
语言
C
递交时间
2025-09-27 20:32:08
评测时间
2025-10-03 02:16:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes