记录详情

Accepted

/in/foo.cc: In function 'bool hw(int)':
/in/foo.cc:10:9: warning: unused variable 'k' [-Wunused-variable]
 int i,j,k;  
         ^
/in/foo.cc: In function 'void rd()':
/in/foo.cc:24:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 if(isdigit(s[i]))j=s[i]-'0';      if(islower(s[i]))j=s[i]-'a'+10;      if(isupper(s[i]))j=s[i]-'A'+10;      
 ^~
/in/foo.cc:24:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
 if(isdigit(s[i]))j=s[i]-'0';      if(islower(s[i]))j=s[i]-'a'+10;      if(isupper(s[i]))j=s[i]-'A'+10;      
                                   ^~
/in/foo.cc: In function 'void add(int)':
/in/foo.cc:30:9: warning: unused variable 'k' [-Wunused-variable]
 int i,j,k,last,y=1-x;  
         ^
/in/foo.cc: In function 'void rd()':
/in/foo.cc:25:16: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
 a[0][++a[0][0]]=j;    
 ~~~~~~~~~~~~~~~^~
# 状态 耗时 内存占用
#1 Accepted 1ms 208.0 KiB
#2 Accepted 1ms 220.0 KiB
#3 Accepted 1ms 212.0 KiB
#4 Accepted 1ms 216.0 KiB

信息

递交者
类型
递交
题目
P1134 回文数
比赛
南京师范大学算法竞赛之2020年寒假战“疫”系列赛Round3 总第73期赛
语言
C++
递交时间
2020-02-23 14:26:51
评测时间
2020-02-23 14:26:51
评测机
分数
100
总耗时
5ms
峰值内存
220.0 KiB