Compile Error

foo.c:1:3: error: stray '#' in program
    1 | e #include <iostream>
      |   ^
foo.c:1:1: error: unknown type name 'e'
    1 | e #include <iostream>
      | ^
foo.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | e #include <iostream>
      |            ^
foo.c: In function 'main':
foo.c:6:5: error: 'cin' undeclared (first use in this function)
    6 |     cin>>a;
      |     ^~~
foo.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:10: error: expected ';' before 'if'
    7 |     num=0
      |          ^
      |          ;
    8 |     if(a>b)
      |     ~~    
foo.c:22:5: error: 'else' without a previous 'if'
   22 |     else:
      |     ^~~~
foo.c:22:9: error: expected expression before ':' token
   22 |     else:
      |         ^
foo.c:5:13: warning: variable 'num' set but not used [-Wunused-but-set-variable]
    5 |     int a,b,num;
      |             ^~~
foo.c:5:11: warning: unused variable 'b' [-Wunused-variable]
    5 |     int a,b,num;
      |           ^

信息

递交者
类型
递交
题目
P1038 完数
语言
C
递交时间
2024-03-21 22:53:25
评测时间
2024-03-21 22:53:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes