/ Vijos /

记录详情

Compile Error

foo.c:4:5: error: expected identifier or '(' before '?' token
 int ??????[100001], ????[100001], ??;
     ^
foo.c: In function 'HeapSort':
foo.c:30:6: warning: unused variable 'j' [-Wunused-variable]
  int j;
      ^
foo.c: In function 'main':
foo.c:46:6: error: expected identifier or '(' before '?' token
  int ??, i, j;
      ^
foo.c:47:15: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
  scanf("%d", &??);
 ^
foo.c:47:15: error: expected expression before '?' token
  scanf("%d", &??);
               ^
foo.c:48:7: error: 'i' undeclared (first use in this function)
  for (i = 0;i < ??;i++)
       ^
foo.c:48:7: note: each undeclared identifier is reported only once for each function it appears in
foo.c:48:17: error: expected expression before '?' token
  for (i = 0;i < ??;i++)
                 ^
foo.c:50:17: error: expected expression before '?' token
  for (i = 0;i < ??;i++)
                 ^
foo.c:53:17: error: expected expression before '?' token
  for (i = 0;i < ??;i++) {
                 ^
foo.c:55:7: error: expected expression before '?' token
   if (????[dangqianzuileizhuhu] < ????[i])
       ^
foo.c:59:2: error: expected expression before '?' token
  ?? = ????[dangqianzuileizhuhu];
  ^
foo.c:60:17: error: expected expression before '?' token
  for (i = 0;i < ??;i++)
                 ^
foo.c:68:4: error: expected expression before '?' token
    ????[i] -= 2 * zhuhu[i][0];
    ^
foo.c:70:4: error: expected expression before '?' token
    ????[i] += 2 * (zhuhu[i][0] - zhuhu[dangqianzuileizhuhu][0]) - 2 * zhuhu[i][0];
    ^
foo.c:72:2: error: expected expression before '?' token
  ????[dangqianzuileizhuhu] = 0;
  ^
foo.c:83:11: error: expected expression before '?' token
  HeapSort(????, ??);
           ^
foo.c:83:17: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
  HeapSort(????, ??);
 ^
foo.c:83:15: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  HeapSort(????, ??);
               ^
foo.c:83:11: error: too few arguments to function 'HeapSort'
  HeapSort(????, ??);
           ^
foo.c:28:6: note: declared here
 void HeapSort(int a[], int n) {
      ^
foo.c:85:11: warning: trigraph ??- ignored, use -trigraphs to enable [-Wtrigraphs]
  for (i = ??-1;i >=0;i--) {
 ^
foo.c:85:11: error: expected expression before '?' token
  for (i = ??-1;i >=0;i--) {
           ^
foo.c:86:18: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
   printf("%d\n", ??);
 ^
foo.c:86:18: error: expected expression before '?' token
   printf("%d\n", ??);
                  ^
foo.c:87:4: error: expected expression before '?' token
    ?? += ????[i];
    ^
foo.c:73:6: warning: unused variable 'l' [-Wunused-variable]
  int l = 1;
      ^
foo.c:52:6: warning: variable 'dangqianzuileizhuhu' set but not used [-Wunused-but-set-variable]
  int dangqianzuileizhuhu = 0;
      ^
foo.c:92:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1977 推销员
语言
C
递交时间
2016-06-28 20:33:06
评测时间
2016-06-28 20:33:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes