Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103523 汤奕硕 07比较大小 C Compile Error 0 MS 0 KB 136 2024-12-28 21:22:02

Tests(0/0):


Code:

#include <stdio.h> int main(){ int n,m; scanf("%d %d",&n,&m); int x=max(n,m); printf("%d",x); return 0; }


Run Info:

Main.c: In function 'main':
Main.c:6:11: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
     int x=max(n,m);
           ^
Main.c:5:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d",&n,&m);
     ^
/tmp/ccxTClZ7.o: In function `main':
Main.c:(.text.startup+0x30): undefined reference to `max'
collect2: error: ld returned 1 exit status