记录详情

Compile Error

/in/foo.c:2:1: error: unknown type name 'using'
 using namespace std;
 ^~~~~
/in/foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^~~
/in/foo.c: In function 'main':
/in/foo.c:8:8: warning: missing terminating " character
  scanf("%d,%d,%d,&a,&c);
        ^
/in/foo.c:8:8: error: missing terminating " character
  scanf("%d,%d,%d,&a,&c);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:9:2: error: expected expression before 'if'
  if(a<b)
  ^~
/in/foo.c:21:25: error: stray '\357' in program
  printf("%d,%d,%d\n",a,b,c);
                         ^
/in/foo.c:21:26: error: stray '\274' in program
  printf("%d,%d,%d\n",a,b,c);
                          ^
/in/foo.c:21:27: error: stray '\214' in program
  printf("%d,%d,%d\n",a,b,c);
                           ^
/in/foo.c:21:29: error: stray '\357' in program
  printf("%d,%d,%d\n",a,b,c);
                             ^
/in/foo.c:21:30: error: stray '\274' in program
  printf("%d,%d,%d\n",a,b,c);
                              ^
/in/foo.c:21:31: error: stray '\214' in program
  printf("%d,%d,%d\n",a,b,c);
                               ^
/in/foo.c:21:33: error: stray '\357' in program
  printf("%d,%d,%d\n",a,b,c);
                                 ^
/in/foo.c:21:34: error: stray '\274' in program
  printf("%d,%d,%d\n",a,b,c);
                                  ^
/in/foo.c:21:35: error: stray '\214' in program
  printf("%d,%d,%d\n",a,b,c);
                                   ^
/in/foo.c:23:1: error: expected ';' before '}' token
 }
 ^
/in/foo.c:6:6: warning: unused variable 'temp' [-Wunused-variable]
  int temp;
      ^~~~
/in/foo.c:5:10: warning: unused variable 'c' [-Wunused-variable]
  int a,b,c;
          ^
/in/foo.c:5:8: warning: unused variable 'b' [-Wunused-variable]
  int a,b,c;
        ^
/in/foo.c:5:6: warning: unused variable 'a' [-Wunused-variable]
  int a,b,c;
      ^

信息

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