Job 6508

Owner
Razvan George Ilascu
Problem
Peculiar Times
Contest
MindCoding 2015 Round 1
Source
1.15KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.cpp:4:19: error: 'typedef int time [4]' redeclared as different kind of symbol
In file included from /usr/include/pthread.h:26:0,
                 from /usr/include/c++/4.7/x86_64-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.7/x86_64-linux-gnu/bits/gthr.h:150,
                 from /usr/include/c++/4.7/ext/atomicity.h:34,
                 from /usr/include/c++/4.7/bits/ios_base.h:41,
                 from /usr/include/c++/4.7/ios:43,
                 from /usr/include/c++/4.7/ostream:40,
                 from /usr/include/c++/4.7/iostream:40,
                 from prog.cpp:1:
/usr/include/time.h:186:15: error: previous declaration of 'time_t time(time_t*)'
prog.cpp:7:21: error: expected ')' before 't'
prog.cpp:7:22: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress]
prog.cpp:7:23: error: expected ',' or ';' before '{' token
prog.cpp:12:23: error: expected ')' before 't'
prog.cpp:12:24: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress]
prog.cpp:12:25: error: expected ',' or ';' before '{' token
prog.cpp:17:21: error: expected ')' before 't'
prog.cpp:17:22: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress]
prog.cpp:17:23: error: expected ',' or ';' before '{' token
prog.cpp:21:21: error: expected ')' before 't'
prog.cpp:21:22: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress]
prog.cpp:21:23: error: expected ',' or ';' before '{' token
prog.cpp:25:23: error: expected ')' before 't'
prog.cpp:25:24: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress]
prog.cpp:25:25: error: expected ',' or ';' before '{' token
prog.cpp:29:22: error: expected ')' before 't'
prog.cpp:29:23: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress]
prog.cpp:29:24: error: expected ',' or ';' before '{' token
prog.cpp:33:27: error: expected ')' before 't'
prog.cpp:33:28: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress]
prog.cpp:33:29: error: expected ',' or ';' before '{' token
prog.cpp:37:22: error: expected ')' before 't'
prog.cpp:37:23: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress]
prog.cpp:37:24: error: expected ',' or ';' before '{' token
prog.cpp: In function 'int main()':
prog.cpp:47:7: error: expected ';' before 't'
prog.cpp:47:8: warning: statement is a reference, not call, to function 'time' [-Waddress]
prog.cpp:47:8: warning: statement has no effect [-Wunused-value]
prog.cpp:50:3: error: 't' was not declared in this scope
prog.cpp:52:18: error: 'ValidTime' cannot be used as a function
prog.cpp:52:35: error: 'ExactHour' cannot be used as a function
prog.cpp:52:53: error: 'DoubledTime' cannot be used as a function
prog.cpp:52:70: error: 'MirrorTime' cannot be used as a function
prog.cpp:52:92: error: 'ConsecutiveTime' cannot be used as a function
prog.cpp:52:109: error: 'PowerOfTwo' cannot be used as a function

Questions?

Sponsors Gold