记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:5:5: error: ‘inta’ undeclared (first use in this function); did you mean ‘int’?
    5 |     inta,b,c,tmp;
      |     ^~~~
      |     int
foo.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:5:10: error: ‘b’ undeclared (first use in this function)
    5 |     inta,b,c,tmp;
      |          ^
foo.c:5:9: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    5 |     inta,b,c,tmp;
      |         ^
foo.c:5:12: error: ‘c’ undeclared (first use in this function)
    5 |     inta,b,c,tmp;
      |            ^
foo.c:5:11: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    5 |     inta,b,c,tmp;
      |           ^
foo.c:5:14: error: ‘tmp’ undeclared (first use in this function)
    5 |     inta,b,c,tmp;
      |              ^~~
foo.c:5:13: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    5 |     inta,b,c,tmp;
      |             ^
foo.c:7:9: error: ‘cin’ undeclared (first use in this function)
    7 |         cin>>a>>b>>c;
      |         ^~~
foo.c:7:14: error: ‘a’ undeclared (first use in this function)
    7 |         cin>>a>>b>>c;
      |              ^
foo.c:17:14: error: ‘c)’ undeclared (first use in this function)
   17 |         if(b>c)
      |              ^~~
foo.c:17:17: error: expected ‘)’ before ‘{’ token
   17 |         if(b>c)
      |           ~     ^
      |                 )
   18 |         {
      |         ~        
foo.c:26:1: error: expected expression before ‘}’ token
   26 | }
      | ^

信息

递交者
类型
自测
语言
C
递交时间
2024-08-15 08:48:33
评测时间
2024-08-15 08:48:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes