Job 14178

Owner
Dragan Andrei Gabriel
Problem
Model E
Contest
MindCoding 2016 Round 1 Take Off Labs (Div. 1)
Source
1.74KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:36:24: error: invalid conversion from 'int' to 'time_t* {aka long int*}' [-fpermissive]
     srand (time(200*200));
                        ^
In file included from /usr/include/c++/4.9/ctime:42:0,
                 from prog.cpp:8:
/usr/include/time.h:192:15: note: initializing argument 1 of 'time_t time(time_t*)'
 extern time_t time (time_t *__timer) __THROW;
               ^
prog.cpp:76:9: error: 'iSecret' was not declared in this scope
         iSecret = rand() % dim + 1;
         ^

Questions?

Sponsors Gold