Record Detail

Runtime Error

/in/P3.c: In function 'main':
/in/P3.c:12:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0;i < strlen(str);++i)
                      ^
/in/P3.c:23:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 0;j < strlen(parstr)-1;j++)
                      ^
/in/P3.c:27:27: warning: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
             strcat(token1,parstr[j]);
                           ^~~~~~
In file included from /usr/include/features.h:424:0,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /in/P3.c:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'char'
 __NTH (strcat (char *__restrict __dest, const char *__restrict __src))
 ^
/in/P3.c:33:5: warning: statement with no effect [-Wunused-value]
     for (m;m < strlen(parstr)-1;m++)
     ^~~
/in/P3.c:33:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (m;m < strlen(parstr)-1;m++)
              ^
/in/P3.c:37:27: warning: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
             strcat(token2,parstr[m]);
                           ^~~~~~
In file included from /usr/include/features.h:424:0,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /in/P3.c:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'char'
 __NTH (strcat (char *__restrict __dest, const char *__restrict __src))
 ^
/in/P3.c:8:13: warning: variable 'c' set but not used [-Wunused-but-set-variable]
     int a,b,c;
             ^
# Status Time Cost Memory Cost
#1 Runtime Error (-11) Detail 1ms 332.0 KiB
#2 Runtime Error (-11) Detail 1ms 456.0 KiB
#3 Runtime Error (-11) Detail 1ms 332.0 KiB
#4 Runtime Error (-11) Detail 1ms 332.0 KiB
#5 Runtime Error (-11) Detail 1ms 332.0 KiB
#6 Runtime Error (-11) Detail 1ms 328.0 KiB
#7 Runtime Error (-11) Detail 1ms 332.0 KiB
#8 Runtime Error (-11) Detail 1ms 384.0 KiB
#9 Runtime Error (-11) Detail 1ms 288.0 KiB
#10 Runtime Error (-11) Detail 1ms 320.0 KiB
#11 Runtime Error (-11) Detail 1ms 332.0 KiB
#12 Runtime Error (-11) Detail 1ms 332.0 KiB
#13 Runtime Error (-11) Detail 1ms 332.0 KiB
#14 Runtime Error (-11) Detail 1ms 328.0 KiB
#15 Runtime Error (-11) Detail 1ms 332.0 KiB
#16 Runtime Error (-11) Detail 1ms 332.0 KiB
#17 Runtime Error (-11) Detail 1ms 332.0 KiB
#18 Runtime Error (-11) Detail 1ms 328.0 KiB
#19 Runtime Error (-11) Detail 1ms 332.0 KiB
#20 Runtime Error (-11) Detail 1ms 332.0 KiB

Information

Submit By
Type
Submission
Problem
Mid2 Problem # 3
Language
C
Submit At
2023-11-24 16:55:06
Judged At
2023-11-24 16:55:06
Judged By
Score
0
Total Time
26ms
Peak Memory
456.0 KiB