Record Detail

Runtime Error

/in/ex4.c: In function 'main':
/in/ex4.c:7:13: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
     scanf("%d",&a);
             ^
/in/ex4.c:8:42: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [-Wint-conversion]
     strftime(buff,26,"%Y-%m-%d %H:%M:%S",a);
                                          ^
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 'long int'
 extern size_t strftime (char *__restrict __s, size_t __maxsize,
               ^~~~~~~~
# Status Time Cost Memory Cost
#1 Runtime Error 1ms 344.0 KiB
#2 Runtime Error 1ms 344.0 KiB
#3 Runtime Error 1ms 332.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 4
Language
C
Submit At
2018-06-19 19:51:19
Judged At
2018-06-19 19:51:19
Judged By
Score
0
Total Time
3ms
Peak Memory
344.0 KiB