Record Detail

Accepted

/in/ex4.c: In function 'main':
/in/ex4.c:10:9: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     time=localtime(&(time_t){t});
         ^
/in/ex4.c:11:44: warning: passing argument 4 of 'strftime' from incompatible pointer type [-Wincompatible-pointer-types]
     strftime(store,30,"%Y-%m-%d %H:%M:%S", time);
                                            ^~~~
In file included from /in/ex4.c:2:0:
/usr/include/time.h:205:15: note: expected 'const struct tm * restrict' but argument is of type 'struct tic *'
 extern size_t strftime (char *__restrict __s, size_t __maxsize,
               ^~~~~~~~
# Status Time Cost Memory Cost
#1 Accepted 0ms 268.0 KiB
#2 Accepted 1ms 328.0 KiB
#3 Accepted 0ms 200.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 4
Language
C
Submit At
2018-06-22 22:38:24
Judged At
2018-06-22 22:38:24
Judged By
Score
30
Total Time
2ms
Peak Memory
328.0 KiB