记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:43:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   43 |                 for(int i = 0; i < res.size(); i ++)
      |                                ~~^~~~~~~~~~~~
foo.cc:42:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   42 |         if(!flag)
      |           ^
foo.cc:35:17: warning: 'num' may be used uninitialized [-Wmaybe-uninitialized]
   35 |         if(num[n]) res += 'w';
      |            ~~~~~^
foo.cc:16:13: note: 'num' declared here
   16 |         int num[100000];
      |             ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read wbb, expect w. 4ms 412.0 KiB
#2 Wrong Answer Read wbw, expect wmmwwm. 4ms 412.0 KiB
#3 Wrong Answer Read wmwm, expect wmmwwbbwbmbwmbwwwwb. 5ms 416.0 KiB
#4 Wrong Answer Read wm, expect mwmbbwbmmbwbmbbwmw. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1449 3-12 笨小羊数学
比赛
2023年暑期算法队集训赛1
语言
C++
递交时间
2023-07-06 18:47:14
评测时间
2023-07-06 18:47:14
评测机
分数
0
总耗时
18ms
峰值内存
416.0 KiB