/ Vijos /

记录详情

Compile Error

foo.cc:32:19: error: empty character constant
      while ((ch < '' || ch > '') && (ch != '-')) ch = getchar();
                   ^~
foo.cc:32:30: error: empty character constant
      while ((ch < '' || ch > '') && (ch != '-')) ch = getchar();
                              ^~
foo.cc:37:19: error: empty character constant
      while (ch >= '' && ch <= '') {
                   ^~
foo.cc:37:31: error: empty character constant
      while (ch >= '' && ch <= '') {
                               ^~
foo.cc:18:16: error: expected primary-expression before ';' token
  const int N = ;
                ^
foo.cc:19:16: error: expected primary-expression before ';' token
  const int M = ;
                ^
foo.cc:21:6: error: expected primary-expression before ',' token
      , , , , , , , , ,
      ^
foo.cc:21:8: error: expected primary-expression before ',' token
      , , , , , , , , ,
        ^
foo.cc:21:10: error: expected primary-expression before ',' token
      , , , , , , , , ,
          ^
foo.cc:21:12: error: expected primary-expression before ',' token
      , , , , , , , , ,
            ^
foo.cc:21:14: error: expected primary-expression before ',' token
      , , , , , , , , ,
              ^
foo.cc:21:16: error: expected primary-expression before ',' token
      , , , , , , , , ,
                ^
foo.cc:21:18: error: expected primary-expression before ',' token
      , , , , , , , , ,
                  ^
foo.cc:21:20: error: expected primary-expression before ',' token
      , , , , , , , , ,
                    ^
foo.cc:21:22: error: expected primary-expression before ',' token
      , , , , , , , , ,
                      ^
foo.cc:25:9: error: expected primary-expression before ']' token
  LL a[N+][];
         ^
foo.cc:26:13: error: expected primary-expression before ']' token
  bool vis[M+];
             ^
foo.cc:27:12: error: expected primary-expression before ']' token
  int ans[M+], cnt = ;
            ^
foo.cc:27:21: error: expected primary-expression before ';' token
  int ans[M+], cnt = ;
                     ^
foo.cc: In function 'void getdata(int)':
foo.cc:31:18: error: expected primary-expression before ';' token
      bool flag = ;
                  ^
foo.cc:34:17: error: expected primary-expression before ';' token
          flag = ;
                 ^
foo.cc:38:23: error: expected primary-expression before ';' token
          for (int i = ; i < ; i++) a[x][i] = (a[x][i]*+ch-) % p[i];
                       ^
foo.cc:38:29: error: expected primary-expression before ';' token
          for (int i = ; i < ; i++) a[x][i] = (a[x][i]*+ch-) % p[i];
                             ^
foo.cc:38:36: error: 'a' was not declared in this scope
          for (int i = ; i < ; i++) a[x][i] = (a[x][i]*+ch-) % p[i];
                                    ^
foo.cc:38:59: error: expected primary-expression before ')' token
          for (int i = ; i < ; i++) a[x][i] = (a[x][i]*+ch-) % p[i];
                                                           ^
foo.cc:41:29: error: expected primary-expression before ';' token
      if (flag) for (int i = ; i < ; i++) a[x][i] *= -;
                             ^
foo.cc:41:35: error: expected primary-expression before ';' token
      if (flag) for (int i = ; i < ; i++) a[x][i] *= -;
                                   ^
foo.cc:41:42: error: 'a' was not declared in this scope
      if (flag) for (int i = ; i < ; i++) a[x][i] *= -;
                                          ^
foo.cc:41:54: error: expected primary-expression before ';' token
      if (flag) for (int i = ; i < ; i++) a[x][i] *= -;
                                                      ^
foo.cc: In function 'bool check2(int, int)':
foo.cc:44:13: error: 'a' was not declared in this scope
      LL v = a[n][kk];
             ^
foo.cc:45:21: error: expected primary-expression before ';' token
      for (int i = n-; i >= ; i--)
                     ^
foo.cc:45:28: error: expected primary-expression before ';' token
      for (int i = n-; i >= ; i--)
                            ^
foo.cc:50:14: error: 'vis' was not declared in this scope
              vis[t] = ;
              ^~~
foo.cc:50:23: error: expected primary-expression before ';' token
              vis[t] = ;
                       ^
foo.cc: In function 'bool check(int)':
foo.cc:58:10: error: 'vis' was not declared in this scope
      if (vis[x]) return false;
          ^~~
foo.cc:59:19: error: expected primary-expression before ';' token
      for (int i = ; i <; i++)
                   ^
foo.cc:59:24: error: expected primary-expression before ';' token
      for (int i = ; i <; i++)
                        ^
foo.cc: In function 'void work()':
foo.cc:64:19: error: expected primary-expression before ';' token
      for (int i = ; i <= n; i++)
                   ^
foo.cc:66:19: error: expected primary-expression before ';' token
      for (int i = ; i <= m; i++)
                   ^
foo.cc:67:24: error: 'ans' was not declared in this scope
          if (check(i)) ans[++cnt] = i;
                        ^~~
foo.cc:67:24: note: suggested alternative: 'abs'
          if (check(i)) ans[++cnt] = i;
                        ^~~
                        abs
foo.cc:69:19: error: expected primary-expression before ';' token
      for (int i = ; i <= cnt; i++)
                   ^
foo.cc:70:25: error: 'ans' was not declared in this scope
          printf("%d\n", ans[i]);
                         ^~~
foo.cc:70:25: note: suggested alternative: 'abs'
          printf("%d\n", ans[i]);
                         ^~~
                         abs
foo.cc: In function 'int main()':
foo.cc:76:6: error: return-statement with no value, in function returning 'int' [-fpermissive]
      return ;
      ^~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1915 解方程 加强版
语言
C++
递交时间
2021-07-19 19:09:23
评测时间
2021-07-19 19:09:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes