Record Detail

Compile Error

prepare (1/4): 
finished

cmake (2/4): 
-- The C compiler identification is Clang 6.0.0
-- The CXX compiler identification is Clang 6.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /out/build
finished

make (3/4): 
Scanning dependencies of target lemondb
[  7%] Building CXX object CMakeFiles/lemondb.dir/main.cpp.o
[  7%] Building CXX object CMakeFiles/lemondb.dir/db/Database.cpp.o
[ 10%] Building CXX object CMakeFiles/lemondb.dir/db/Table.cpp.o
[ 14%] Building CXX object CMakeFiles/lemondb.dir/query/Query.cpp.o
/in/db/Table.cpp:75:29: error: member reference type 'std::vector<Datum>' is not a pointer; did you mean to use '.'?
    auto lastIt = this->data->rbegin();
                  ~~~~~~~~~~^~
                            .
/in/db/Table.cpp:78:16: error: invalid operands to binary expression ('std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >' and 'Table::DataIterator' (aka '__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > >'))
    if (lastIt != it)
        ~~~~~~ ^  ~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/system_error:319:3: note: candidate function not viable: no known conversion from 'std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >' to 'const std::error_code' for 1st argument
  operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
  ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/system_error:323:3: note: candidate function not viable: no known conversion from 'std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >' to 'const std::error_code' for 1st argument
  operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept
  ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/system_error:327:3: note: candidate function not viable: no known conversion from 'std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >' to 'const std::error_condition' for 1st argument
  operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept
  ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/system_error:331:3: note: candidate function not viable: no known conversion from 'std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >' to 'const std::error_condition' for 1st argument
  operator!=(const error_condition& __lhs,
  ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_pair.h:456:5: note: candidate template ignored: could not match 'pair' against 'reverse_iterator'
    operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_iterator.h:311:5: note: candidate template ignored: could not match 'reverse_iterator' against '__normal_iterator'
    operator!=(const reverse_iterator<_Iterator>& __x,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_iterator.h:349:5: note: candidate template ignored: could not match 'reverse_iterator' against '__normal_iterator'
    operator!=(const reverse_iterator<_IteratorL>& __x,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_iterator.h:873:5: note: candidate template ignored: could not match '__normal_iterator' against 'reverse_iterator'
    operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_iterator.h:880:5: note: candidate template ignored: could not match '__normal_iterator' against 'reverse_iterator'
    operator!=(const __normal_iterator<_Iterator, _Container>& __lhs,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_iterator.h:1130:5: note: candidate template ignored: could not match 'move_iterator' against 'reverse_iterator'
    operator!=(const move_iterator<_IteratorL>& __x,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_iterator.h:1136:5: note: candidate template ignored: could not match 'move_iterator' against 'reverse_iterator'
    operator!=(const move_iterator<_Iterator>& __x,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ext/new_allocator.h:160:5: note: candidate template ignored: could not match 'new_allocator' against 'reverse_iterator'
    operator!=(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/allocator.h:158:5: note: candidate template ignored: could not match 'allocator' against 'reverse_iterator'
    operator!=(const allocator<_T1>&, const allocator<_T2>&)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/allocator.h:164:5: note: candidate template ignored: could not match 'allocator' against 'reverse_iterator'
    operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/postypes.h:221:5: note: candidate template ignored: could not match 'fpos' against 'reverse_iterator'
    operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/basic_string.h:6047:5: note: candidate template ignored: could not match 'basic_string' against 'reverse_iterator'
    operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/basic_string.h:6060:5: note: candidate template ignored: could not match 'const _CharT *' against 'std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >'
    operator!=(const _CharT* __lhs,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/basic_string.h:6072:5: note: candidate template ignored: could not match 'basic_string' against 'reverse_iterator'
    operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/array:257:5: note: candidate template ignored: could not match 'array' against 'reverse_iterator'
    operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/tuple:1423:5: note: candidate template ignored: could not match 'tuple' against 'reverse_iterator'
    operator!=(const tuple<_TElements...>& __t,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/unique_ptr.h:700:5: note: candidate template ignored: could not match 'unique_ptr' against 'reverse_iterator'
    operator!=(const unique_ptr<_Tp, _Dp>& __x,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/unique_ptr.h:706:5: note: candidate template ignored: could not match 'unique_ptr' against 'reverse_iterator'
    operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/unique_ptr.h:711:5: note: candidate template ignored: could not match 'unique_ptr' against '__normal_iterator'
    operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/shared_ptr_base.h:1425:5: note: candidate template ignored: could not match '__shared_ptr' against 'reverse_iterator'
    operator!=(const __shared_ptr<_Tp1, _Lp>& __a,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/shared_ptr_base.h:1431:5: note: candidate template ignored: could not match '__shared_ptr' against 'reverse_iterator'
    operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/shared_ptr_base.h:1436:5: note: candidate template ignored: could not match '__shared_ptr' against '__normal_iterator'
    operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/shared_ptr.h:383:5: note: candidate template ignored: could not match 'shared_ptr' against 'reverse_iterator'
    operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/shared_ptr.h:388:5: note: candidate template ignored: could not match 'shared_ptr' against 'reverse_iterator'
    operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/shared_ptr.h:393:5: note: candidate template ignored: could not match 'shared_ptr' against '__normal_iterator'
    operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/unordered_map.h:1917:5: note: candidate template ignored: could not match 'unordered_map' against 'reverse_iterator'
    operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/unordered_map.h:1929:5: note: candidate template ignored: could not match 'unordered_multimap' against 'reverse_iterator'
    operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_vector.h:1620:5: note: candidate template ignored: could not match 'vector' against 'reverse_iterator'
    operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/streambuf_iterator.h:210:5: note: candidate template ignored: could not match 'istreambuf_iterator' against 'reverse_iterator'
    operator!=(const istreambuf_iterator<_CharT, _Traits>& __a,
    ^
/in/db/Table.cpp:80:13: error: no member named 'swap' in 'Table::Datum'
        it->swap(*lastIt);
        ~~  ^
/in/db/Table.cpp:83:40: error: no viable overloaded '='
        this->keyMap.find(lastIt->key) = it;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/hashtable_policy.h:333:12: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'Table::DataIterator' (aka '__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > >') to 'const std::__detail::_Node_iterator<std::pair<const std::__cxx11::basic_string<char>, unsigned long>, false, true>' for 1st argument
    struct _Node_iterator
           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/hashtable_policy.h:333:12: note: candidate function (the implicit move assignment operator) not viable: no known conversion from 'Table::DataIterator' (aka '__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > >') to 'std::__detail::_Node_iterator<std::pair<const std::__cxx11::basic_string<char>, unsigned long>, false, true>' for 1st argument
/in/db/Table.cpp:89:15: error: member reference type 'std::vector<Datum>' is not a pointer; did you mean to use '.'?
    this->data->pop_back();
    ~~~~~~~~~~^~
              .
5 errors generated.
CMakeFiles/lemondb.dir/build.make:110: recipe for target 'CMakeFiles/lemondb.dir/db/Table.cpp.o' failed
make[2]: *** [CMakeFiles/lemondb.dir/db/Table.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/lemondb.dir/all' failed
make[1]: *** [CMakeFiles/lemondb.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

build failed

Information

Submit By
Type
Submission
Homework
Project 2 MileStone 1
Language
CMake
Submit At
2018-11-03 19:49:33
Judged At
2018-11-03 19:49:33
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes