记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
  printf("%d%d%d",&a,&b,&c);
           ^
/in/foo.c:7:13: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=]
  printf("%d%d%d",&a,&b,&c);
             ^
/in/foo.c:7:15: warning: format '%d' expects argument of type 'int', but argument 4 has type 'int *' [-Wformat=]
  printf("%d%d%d",&a,&b,&c);
               ^
/in/foo.c:18:4: error: expected '}' before 'else'
    else{
    ^~~~
/in/foo.c:21:2: error: expected '}' before 'else'
  else{
  ^~~~
/in/foo.c:29:4: error: expected '}' before 'else'
    else{
    ^~~~
/in/foo.c:6:6: warning: unused variable 'r' [-Wunused-variable]
  int r;
      ^
/in/foo.c: At top level:
/in/foo.c:36:1: error: expected identifier or '(' before '}' token
 }
 ^

信息

递交者
类型
自测
题目
A1-1 分支结构练习:三数排序
语言
C
递交时间
2024-08-15 09:51:56
评测时间
2024-08-15 09:51:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes