Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115350 王镜铭 输出较大的数 C++ Compile Error 0 MS 0 KB 164 2025-03-30 12:38:13

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; scanf("%d,%d",&a,&b); c=b; if(a>b){ c=a; } printf("max=%d",&c) return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int*' [-Wformat=]
  printf("max=%d",&c) 
                    ^
Main.cc:11:2: error: expected ';' before 'return'
  return 0;
  ^
Main.cc:5:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d,%d",&a,&b);
                      ^