记录详情

Compile Error

/in/foo.cc: In function 'int CountLower(char*)':
/in/foo.cc:8:23: error: 'strlen' was not declared in this scope
     int len = strlen(s);
                       ^
/in/foo.cc: In function 'int CountUpper(char*)':
/in/foo.cc:19:23: error: 'strlen' was not declared in this scope
     int len = strlen(s);
                       ^
/in/foo.cc: In function 'void Concat(char*, char*, char*)':
/in/foo.cc:37:25: error: 'strlen' was not declared in this scope
     int len1 = strlen(s1);
                         ^
/in/foo.cc:41:26: error: 'strcpy' was not declared in this scope
         strcpy(s3, s2 + 1);
                          ^
/in/foo.cc:45:22: error: 'strcpy' was not declared in this scope
         strcpy(s3, s1);
                      ^
/in/foo.cc:50:29: error: 'strncpy' was not declared in this scope
     strncpy(s3, s1, len1 - 1);
                             ^
/in/foo.cc:52:22: error: 'strcat' was not declared in this scope
     strcat(s3, s2 + 1);
                      ^

信息

递交者
类型
自测
语言
C++
递交时间
2024-11-26 13:11:02
评测时间
2024-11-26 13:11:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes