Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115365 张修睿 输出较大的数 C++ Compile Error 0 MS 0 KB 180 2025-03-30 12:48:08

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:22: warning: left operand of comma operator has no effect [-Wunused-value]
  printf<<( "max=%d", c);
                      ^
Main.cc:10:23: error: invalid operands of types 'int(const char*, ...)' and 'int' to binary 'operator<<'
  printf<<( "max=%d", c);
                       ^
Main.cc:5:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d,%d", &a, &b);
                        ^