/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void extern_str(char*, int)':
foo.cpp:13:34: error: 'isdigit' was not declared in this scope
     int mztj = isdigit(buf[l - 1]) && isdigit(buf[l + 1]) || isalpha(buf[l - 1]) && isalpha(buf[l + 1]);
                                  ^
foo.cpp:13:80: error: 'isalpha' was not declared in this scope
     int mztj = isdigit(buf[l - 1]) && isdigit(buf[l + 1]) || isalpha(buf[l - 1]) && isalpha(buf[l + 1]);
                                                                                ^
foo.cpp:32:32: error: 'toupper' was not declared in this scope
     if(p1 == 2) sc = toupper(sc), ec = toupper(ec);
                                ^
foo.cpp:43:32: warning: array subscript has type 'char' [-Wchar-subscripts]
             printf("%c", lstr[i]);
                                ^
foo.cpp:47:32: warning: array subscript has type 'char' [-Wchar-subscripts]
             printf("%c", lstr[i]);
                                ^

信息

递交者
类型
递交
题目
P1379 字符串的展开
语言
C++
递交时间
2016-09-26 12:09:29
评测时间
2016-09-26 12:09:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes