记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:2: error: expected ',' or ';' before 'int'
  int temp=num;
  ^~~
/in/foo.c:7:8: error: 'temp' undeclared (first use in this function)
  while(temp!=0)
        ^~~~
/in/foo.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:14:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(temp!=0);
  ^~~~~
/in/foo.c:15:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  {
  ^
/in/foo.c:16:3: error: 'dight' undeclared (first use in this function)
   dight=temp%10;
   ^~~~~
/in/foo.c:29:2: error: label at end of compound statement
  return0:
  ^~~~~~~
/in/foo.c:29:2: warning: label 'return0' defined but not used [-Wunused-label]

信息

递交者
类型
自测
语言
C
递交时间
2024-11-12 17:35:13
评测时间
2024-11-12 17:35:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes