Record Detail

Runtime Error

/in/ex4.c: In function 'main':
/in/ex4.c:12:47: warning: passing argument 4 of 'strftime' from incompatible pointer type [-Wincompatible-pointer-types]
     strftime(buffer, 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 'char *'
 extern size_t strftime (char *__restrict __s, size_t __maxsize,
               ^~~~~~~~
/in/ex4.c:10:16: warning: unused variable 'tm_info' [-Wunused-variable]
     struct tm* tm_info;
                ^~~~~~~
/in/ex4.c:8:12: warning: unused variable 'timer' [-Wunused-variable]
     time_t timer;
            ^~~~~
/in/ex4.c:7:5: warning: 'a' is used uninitialized in this function [-Wuninitialized]
     scanf("%c",a);
     ^~~~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Runtime Error 1ms 324.0 KiB
#2 Runtime Error 1ms 376.0 KiB
#3 Runtime Error 1ms 284.0 KiB

Information

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