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/db/Database.cpp.o
[  7%] Building CXX object CMakeFiles/lemondb.dir/main.cpp.o
[ 10%] Building CXX object CMakeFiles/lemondb.dir/db/Table.cpp.o
[ 14%] Building CXX object CMakeFiles/lemondb.dir/query/Query.cpp.o
[ 17%] Building CXX object CMakeFiles/lemondb.dir/query/QueryParser.cpp.o
[ 21%] Building CXX object CMakeFiles/lemondb.dir/query/QueryResult.cpp.o
[ 25%] Building CXX object CMakeFiles/lemondb.dir/query/QueryBuilders.cpp.o
[ 28%] Building CXX object CMakeFiles/lemondb.dir/query/management/LoadTableQuery.cpp.o
[ 32%] Building CXX object CMakeFiles/lemondb.dir/query/management/DropTableQuery.cpp.o
[ 35%] Building CXX object CMakeFiles/lemondb.dir/query/management/DumpTableQuery.cpp.o
[ 39%] Building CXX object CMakeFiles/lemondb.dir/query/management/ListTableQuery.cpp.o
[ 46%] Building CXX object CMakeFiles/lemondb.dir/query/management/CopyTableQuery.cpp.o
[ 46%] Building CXX object CMakeFiles/lemondb.dir/query/management/TruncateTableQuery.cpp.o
[ 50%] Building CXX object CMakeFiles/lemondb.dir/query/management/QuitQuery.cpp.o
[ 53%] Building CXX object CMakeFiles/lemondb.dir/query/management/PrintTableQuery.cpp.o
[ 57%] Building CXX object CMakeFiles/lemondb.dir/query/data/DuplicateQuery.cpp.o
[ 60%] Building CXX object CMakeFiles/lemondb.dir/query/data/SelectQuery.cpp.o
[ 64%] Building CXX object CMakeFiles/lemondb.dir/query/data/InsertQuery.cpp.o
[ 67%] Building CXX object CMakeFiles/lemondb.dir/query/data/UpdateQuery.cpp.o
[ 71%] Building CXX object CMakeFiles/lemondb.dir/query/data/DeleteQuery.cpp.o
[ 75%] Building CXX object CMakeFiles/lemondb.dir/query/data/CountQuery.cpp.o
/in/query/data/CountQuery.cpp:18:21: error: variable 'counter' is uninitialized when used here [-Werror,-Wuninitialized]
                    counter++;
                    ^~~~~~~
/in/query/data/CountQuery.cpp:10:16: note: initialize the variable 'counter' to silence this warning
    int counter;
               ^
                = 0
1 error generated.
CMakeFiles/lemondb.dir/build.make:542: recipe for target 'CMakeFiles/lemondb.dir/query/data/CountQuery.cpp.o' failed
make[2]: *** [CMakeFiles/lemondb.dir/query/data/CountQuery.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-02 15:21:43
Judged At
2018-11-02 15:21:43
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes