Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100116 郝王骏程 字符串拼接 C++ Compile Error 0 MS 0 KB 261 2024-12-02 20:12:35

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ char a[100000000000000000000000000000],b[10000000000000000000000000000000000000000]; cin>>a>>b; int n; cin>>n; strcat(a,b); cout<<a[n-1]; return 0; }


Run Info:

Main.cc:5:12: warning: integer constant is too large for its type
     char a[100000000000000000000000000000],b[10000000000000000000000000000000000000000];
            ^
Main.cc:5:46: warning: integer constant is too large for its type
     char a[100000000000000000000000000000],b[10000000000000000000000000000000000000000];
                                              ^
Main.cc: In function 'int main()':
Main.cc:5:87: error: size of array 'b' is too large
     char a[100000000000000000000000000000],b[10000000000000000000000000000000000000000];
                                                                                       ^
Main.cc:6:13: error: 'b' was not declared in this scope
     cin>>a>>b;
             ^
Main.cc:9:15: error: 'strcat' was not declared in this scope
     strcat(a,b);
               ^