Record Detail

Wrong Answer

/in/ex1.c: In function 'str2cpx':
/in/ex1.c:33:29: warning: 'sizeof' on array function parameter 'in' will return size of 'char *' [-Wsizeof-array-argument]
     for ( i = 1; i <= sizeof( in ) / sizeof( in[ 0 ] ); i++ ){
                             ^
/in/ex1.c:26:19: note: declared here
 cpx str2cpx( char in[] )
                   ^~
/in/ex1.c:38:37: warning: 'sizeof' on array function parameter 'in' will return size of 'char *' [-Wsizeof-array-argument]
             for ( j = i; j <= sizeof( in ) / sizeof( in[ 0 ] ); j++ ){
                                     ^
/in/ex1.c:26:19: note: declared here
 cpx str2cpx( char in[] )
                   ^~
# Status Time Cost Memory Cost
#1 Accepted 1ms 328.0 KiB
#2 Accepted 1ms 328.0 KiB
#3 Accepted 0ms 328.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 0ms 204.0 KiB
#6 Accepted 0ms 328.0 KiB
#7 Accepted 0ms 200.0 KiB
#8 Accepted 1ms 320.0 KiB
#9 Accepted 1ms 344.0 KiB
#10 Wrong Answer 0ms 256.0 KiB

Information

Submit By
Type
Submission
Problem
h4ex1: Structure, basic programming
Homework
Assignment 4
Language
C
Submit At
2018-06-18 09:33:17
Judged At
2018-06-18 09:33:17
Judged By
Score
90
Total Time
10ms
Peak Memory
344.0 KiB