/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:17:20: warning: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
    f[i][j]=s[i][j]+min(f[i+1][j],f[i][j-1]);
                    ^~~
                    main
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n,&m);
  ^~~~~~~~~~~~~~~~~~~
foo.c:11:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&s[i][j]);
    ^~~~~~~~~~~~~~~~~~~~
/tmp/cc4bG2le.o: In function `main':
foo.c:(.text.startup+0x196): undefined reference to `min'
foo.c:(.text.startup+0x1ff): undefined reference to `min'
foo.c:(.text.startup+0x25c): undefined reference to `min'
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
P1139 小胖办证
语言
C
递交时间
2020-11-03 12:29:12
评测时间
2020-11-03 12:29:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes