Record Detail

Compile Error

prepare (1/3): 
finished

cmake (2/3): 
-- The C 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
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_COMPILER


-- Build files have been written to: /out
finished

make (3/3): 
Scanning dependencies of target aes
[ 33%] Building C object CMakeFiles/aes.dir/main.c.o
In file included from /out/main.c:6:
/out/aes.h:39:8: error: unknown type name 'uint8_t'
static uint8_t INV_SBOX[256] = {
       ^
/out/main.c:97:45: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration]
                srand((unsigned int) time(0) + getpid());
                                               ^
1 warning and 1 error generated.
CMakeFiles/aes.dir/build.make:62: recipe for target 'CMakeFiles/aes.dir/main.c.o' failed
make[2]: *** [CMakeFiles/aes.dir/main.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/aes.dir/all' failed
make[1]: *** [CMakeFiles/aes.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

build failed

Information

Submit By
Type
Submission
Homework
Challange 2
Language
CMake
Submit At
2019-07-05 21:21:12
Judged At
2019-07-05 21:21:12
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes