Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
136277 王奕杰 逆序输出 C++ Compile Error 0 MS 0 KB 461 2025-11-10 19:07:01

Tests(0/0):


Code:

clude<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 n,a[100]; cin>>n; for(int i=0;i<=100;i++){ a[i]==i; cin>>a[i]; } for(int i=n;i<=n;i++){ cout<<a[i]<<" "; } return 0; }


Run Info:

Main.cc:1:1: error: 'clude' does not name a type
 clude  // cin\cout\endl
 ^
In file included from /usr/include/c++/5/cmath:43:0,
                 from Main.cc:4:
/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:9:8: error: 'cin' was not declared in this scope
        cin>>n;
        ^
Main.cc:11:13: warning: statement has no effect [-Wunused-value]
         a[i]==i;
             ^
Main.cc:16:6: error: 'cout' was not declared in this scope
      cout<