Record Detail

Wrong Answer

/in/ex4.c: In function 'main':
/in/ex4.c:7:9: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int' [-Wformat=]
 scanf("%d", rawtime);
         ^
/in/ex4.c:9:30: warning: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
 struct tm *info = localtime( &rawtime );
                              ^
In file included from /in/ex4.c:2:0:
/usr/include/time.h:243:19: note: expected 'const time_t * {aka const long int *}' but argument is of type 'long long int *'
 extern struct tm *localtime (const time_t *__timer) __THROW;
                   ^~~~~~~~~
/in/ex4.c:7:1: warning: 'rawtime' is used uninitialized in this function [-Wuninitialized]
 scanf("%d", rawtime);
 ^~~~~~~~~~~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 328.0 KiB
#2 Wrong Answer 1ms 244.0 KiB
#3 Wrong Answer 1ms 324.0 KiB

Information

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