Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111074 陈婷婷 输出较大的数 C++ Compile Error 0 MS 0 KB 441 2025-02-26 14:13:01

Tests(0/0):


Code:

include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a3,b3; int max; scanf("%d,%d",&a3,&b3); if(a3>b3) { max=a3; } else { max=b3; } printf("max= %d",max); return 0; }


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include  // cin\cout\endl
 ^
In file included from /usr/include/c++/5/cmath:43:0,
                 from Main.cc:5:
/usr/include/c++/5/ext/type_traits.h:160:35: error: '__gnu_cxx::__is_null_pointer' declared as an 'inline' variable
   __is_null_pointer(std::nullptr_t)
                                   ^
/usr/include/c++/5/ext/type_traits.h:160:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
/usr/include/c++/5/ext/type_traits.h:155:5: note: previous declaration 'template bool __gnu_cxx::__is_null_pointer(_Type)'
     __is_null_pointer(_Type)
     ^
/usr/include/c++/5/ext/type_traits.h:160:21: error: 'nullptr_t' is not a member of 'std'
   __is_null_pointer(std::nullptr_t)
                     ^
Main.cc: In function 'int main()':
Main.cc:10:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d,%d",&a3,&b3);
                           ^