F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_33546318_189.cpp:61:13: error: expected unqualified-id before numeric constant
 #define inf 0x7fffffff
             ^
0_0_33546318_189.cpp:152:10: note: in expansion of macro 'inf'
 const ll inf=9e18;
          ^
0_0_33546318_189.cpp:153:5: error: conflicting declaration 'int t'
 int t, n, m;
     ^
0_0_33546318_189.cpp:84:5: note: previous declaration as 'int t [100010]'
 int t[maxn];
     ^
0_0_33546318_189.cpp:153:8: error: redefinition of 'int n'
 int t, n, m;
        ^
0_0_33546318_189.cpp:93:5: note: 'int n' previously declared here
 int n,m;
     ^
0_0_33546318_189.cpp:153:11: error: redefinition of 'int m'
 int t, n, m;
           ^
0_0_33546318_189.cpp:93:7: note: 'int m' previously declared here
 int n,m;
       ^
0_0_33546318_189.cpp:158:6: error: conflicting declaration 'p a [51]'
 }a[51];
      ^
0_0_33546318_189.cpp:86:4: note: previous declaration as 'll a [100010]'
 ll a[maxn];
    ^
0_0_33546318_189.cpp: In function 'long long int f(int, int)':
0_0_33546318_189.cpp:161:25: error: request for member 'a' in 'a[i]', which is of non-class type 'll {aka long long int}'
  return (long long)a[i].a * x * x + (long long)a[i].b * x + a[i].c;
                         ^
0_0_33546318_189.cpp:161:53: error: request for member 'b' in 'a[i]', which is of non-class type 'll {aka long long int}'
  return (long long)a[i].a * x * x + (long long)a[i].b * x + a[i].c;
                                                     ^
0_0_33546318_189.cpp:161:66: error: request for member 'c' in 'a[i]', which is of non-class type 'll {aka long long int}'
  return (long long)a[i].a * x * x + (long long)a[i].b * x + a[i].c;
                                                                  ^
0_0_33546318_189.cpp: At global scope:
0_0_33546318_189.cpp:167:10: error: conflicting declaration 'ucc b [51][51]'
 }b[51][51];
          ^
0_0_33546318_189.cpp:87:4: note: previous declaration as 'll b [100010]'
 ll b[maxn];
    ^
0_0_33546318_189.cpp: In function 'void dfs(int, ll, int, int)':
0_0_33546318_189.cpp:187:19: error: invalid types 'll {aka long long int}[int]' for array subscript
   if(book[b[now][i].x])
                   ^
0_0_33546318_189.cpp:189:16: error: invalid types 'll {aka long long int}[int]' for array subscript
   book[b[now][i].x]=1;
                ^
0_0_33546318_189.cpp:190:26: error: invalid types 'll {aka long long int}[int]' for array subscript
   dfs(now+1,cost+b[now][i].n,d+1,need);
                          ^
0_0_33546318_189.cpp:191:16: error: invalid types 'll {aka long long int}[int]' for array subscript
   book[b[now][i].x]=0;
                ^
0_0_33546318_189.cpp: In function 'int main()':
0_0_33546318_189.cpp:195:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_33546318_189.cpp:117:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_33546318_189.cpp:197:9: error: cannot bind 'std::istream {aka std::basic_istream<char>}' lvalue to 'std::basic_istream<char>&&'
  cin >> t;
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_33546318_189.cpp:47:
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:872:5: note: initializing argument 1 of 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = int [100010]]'
     operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
     ^
0_0_33546318_189.cpp:198:10: error: lvalue required as decrement operand
  while (t--)
          ^
0_0_33546318_189.cpp:202:26: error: request for member 'a' in 'a[i]', which is of non-class type 'll {aka long long int}'
    scanf("%d%d%d", &a[i].a, &a[i].b, &a[i].c);
                          ^
0_0_33546318_189.cpp:202:35: error: request for member 'b' in 'a[i]', which is of non-class type 'll {aka long long int}'
    scanf("%d%d%d", &a[i].a, &a[i].b, &a[i].c);
                                   ^
0_0_33546318_189.cpp:202:44: error: request for member 'c' in 'a[i]', which is of non-class type 'll {aka long long int}'
    scanf("%d%d%d", &a[i].a, &a[i].b, &a[i].c);
                                            ^
0_0_33546318_189.cpp:204:23: error: request for member 'a' in 'a[i]', which is of non-class type 'll {aka long long int}'
    if ((n + 1) * a[i].a + a[i].b >= 0)
                       ^
0_0_33546318_189.cpp:204:32: error: request for member 'b' in 'a[i]', which is of non-class type 'll {aka long long int}'
    if ((n + 1) * a[i].a + a[i].b >= 0)
                                ^
0_0_33546318_189.cpp:207:16: error: invalid types 'll {aka long long int}[int]' for array subscript
      b[i][j - 1].x = j, b[i][j - 1].n = f(i, j);
                ^
0_0_33546318_189.cpp:207:35: error: invalid types 'll {aka long long int}[int]' for array subscript
      b[i][j - 1].x = j, b[i][j - 1].n = f(i, j);
                                   ^
0_0_33546318_189.cpp:211:36: error: request for member 'a' in 'a[i]', which is of non-class type 'll {aka long long int}'
    else if ((2 * m - n + 1) * a[i].a + a[i].b <= 0)
                                    ^
0_0_33546318_189.cpp:211:45: error: request for member 'b' in 'a[i]', which is of non-class type 'll {aka long long int}'
    else if ((2 * m - n + 1) * a[i].a + a[i].b <= 0)
                                             ^
0_0_33546318_189.cpp:214:13: error: invalid types 'll {aka long long int}[int]' for array subscript
      b[i][jj].x = j, b[i][jj].n = f(i, j);
             ^
0_0_33546318_189.cpp:214:29: error: invalid types 'll {aka long long int}[int]' for array subscript
      b[i][jj].x = j, b[i][jj].n = f(i, j);
                             ^
0_0_33546318_189.cpp:222:35: error: request for member 'b' in 'a[i]', which is of non-class type 'll {aka long long int}'
     int ppp = (int)(-(double)a[i].b / 2 / a[i].a);
                                   ^
0_0_33546318_189.cpp:222:48: error: request for member 'a' in 'a[i]', which is of non-class type 'll {aka long long int}'
     int ppp = (int)(-(double)a[i].b / 2 / a[i].a);
                                                ^
0_0_33546318_189.cpp:229:12: error: invalid types 'll {aka long long int}[int]' for array subscript
      b[i][j] = v[j];
            ^
0_0_33546318_189.cpp:232:12: error: invalid types 'll {aka long long int}[int]' for array subscript
      b[i][n] = v[n], s[i]++;
            ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33546318_189.cpp:47:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(ucc, ucc)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(ucc, ucc)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(ucc, ucc)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = long long int; _Compare = int (*)(ucc, ucc)]'
0_0_33546318_189.cpp:208:29:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1849:3: error: no type named 'value_type' in 'struct std::iterator_traits<long long int>'
   __val = _GLIBCXX_MOVE(*__i);
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1849:3: error: no type named 'value_type' in 'struct std::iterator_traits<long long int>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1851:8: error: invalid type argument of unary '*' (have 'long long int')
        *__first = _GLIBCXX_MOVE(__val);
        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_33546318_189.cpp:47:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = long long int; _Iterator2 = long long int;


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-29 11:57:09, Gzip enabled