Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115357 赵梓渊 输出较大的数 C++ Compile Error 0 MS 0 KB 183 2025-03-30 12:46:35

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:10:20: warning: missing terminating " character
  printf("max=%d",c)";
                    ^
Main.cc:10:2: error: missing terminating " character
  printf("max=%d",c)";
  ^
Main.cc: In function 'int main()':
Main.cc:11:7: error: expected ';' before 'return'
       return 0;
       ^
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);
                        ^