记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:4:13: error: stray '\357' in program
  long long x;
             ^
/in/foo.c:4:14: error: stray '\274' in program
  long long x;
              ^
/in/foo.c:4:15: error: stray '\233' in program
  long long x;
               ^
/in/foo.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cin'
         cin>>x
         ^~~
/in/foo.c:5:9: error: 'cin' undeclared (first use in this function)
/in/foo.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:14: error: 'x' undeclared (first use in this function)
         cin>>x
              ^
/in/foo.c:6:2: error: expected ';' before 'int'
  int n=sqrt(x);
  ^~~
/in/foo.c:8:12: error: 'n' undeclared (first use in this function)
  while(x1<=n)
            ^
/in/foo.c:11:4: error: 'cout' undeclared (first use in this function)
    cout<<x1<<"+"<<x/x1<<"="<<x1+x/x1<<endl; 
    ^~~~
/in/foo.c:11:39: error: 'endl' undeclared (first use in this function)
    cout<<x1<<"+"<<x/x1<<"="<<x1+x/x1<<endl; 
                                       ^~~~

信息

递交者
类型
递交
题目
A3-1 素数专题:因子的和
语言
C
递交时间
2021-01-09 21:02:56
评测时间
2021-01-09 21:02:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes