/ Vijos /

记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:5:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
     scanf("%d%d\n",&n,&k);
     ^~~~~
/in/foo.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:31:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
     printf("%d",count);
     ^~~~~~
/in/foo.c:31:5: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:31:5: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:17:21: warning: iteration 21 invokes undefined behavior [-Waggressive-loop-optimizations]
             if (a[i][j]==0)
                 ~~~~^~~
/in/foo.c:15:9: note: within this loop
         for (j=0;j<=21;j++)
         ^~~
/in/foo.c:23:33: warning: iteration 21 invokes undefined behavior [-Waggressive-loop-optimizations]
                         if (a[j][p]==a[i][m])
                             ~~~~^~~
/in/foo.c:22:25: note: within this loop
                         for (p=0;p<=21;p++)
                         ^~~
/in/foo.c:10:21: warning: iteration 22 invokes undefined behavior [-Waggressive-loop-optimizations]
             if (a[i][j]==0)
                 ~~~~^~~
/in/foo.c:6:5: note: within this loop
     for (i=0;i<=22;i++)
     ^~~
# 状态 耗时 内存占用
#1 Runtime Error 3ms 256.0 KiB
#2 Runtime Error 2ms 256.0 KiB
#3 Runtime Error 2ms 256.0 KiB
#4 Runtime Error 3ms 256.0 KiB
#5 Runtime Error 3ms 256.0 KiB
#6 Runtime Error 2ms 256.0 KiB
#7 Runtime Error 3ms 256.0 KiB
#8 Runtime Error 2ms 256.0 KiB
#9 Runtime Error 2ms 256.0 KiB
#10 Runtime Error 3ms 256.0 KiB

信息

递交者
类型
递交
题目
P1021 Victoria的舞会1
语言
C
递交时间
2018-03-31 10:54:06
评测时间
2018-03-31 10:54:06
评测机
分数
0
总耗时
27ms
峰值内存
256.0 KiB