#J. C++-函数-有类型(非void)的函数但没有return值会有什么问题

    Type: Default 1000ms 256MiB

C++-函数-有类型(非void)的函数但没有return值会有什么问题

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

Description

有类型(非void)的函数但没有return值会有什么问题

image

在windows下没有问题,但在linux下编译时会警告且结果有误:

image

Format

Input

Output

Samples


20
5
i=0--nCount=20
01:Welcome!
i=1--nCount=20
02:Welcome!
i=2--nCount=20
03:Welcome!
i=3--nCount=20
04:Welcome!
i=4--nCount=20
05:Welcome!
i=5--nCount=20
06:Welcome!
i=6--nCount=20
07:Welcome!
i=7--nCount=20
08:Welcome!
i=8--nCount=20
09:Welcome!
i=9--nCount=20
10:Welcome!
i=10--nCount=20
11:Welcome!
i=11--nCount=20
12:Welcome!
i=12--nCount=20
13:Welcome!
i=13--nCount=20
14:Welcome!
i=14--nCount=20
15:Welcome!
i=15--nCount=20
16:Welcome!
i=16--nCount=20
17:Welcome!
i=17--nCount=20
18:Welcome!
i=18--nCount=20
19:Welcome!
i=19--nCount=20
20:Welcome!
i=20--nCount=20
21:Welcome!
i=21--nCount=20
22:Welcome!
i=22--nCount=20
23:Welcome!
i=23--nCount=20
24:Welcome!
i=24--nCount=20
25:Welcome!
i=25--nCount=20
26:Welcome!
i=26--nCount=20
27:Welcome!
i=27--nCount=20
28:Welcome!
i=28--nCount=20
29:Welcome!
i=29--nCount=20
30:Welcome!
i=30--nCount=20
31:Welcome!
i=0--nCount=5
01:Welcome!
i=1--nCount=5
02:Welcome!
i=2--nCount=5
03:Welcome!
i=3--nCount=5
04:Welcome!
i=4--nCount=5
05:Welcome!
i=5--nCount=5
06:Welcome!
i=6--nCount=5
07:Welcome!
i=7--nCount=5
08:Welcome!
i=8--nCount=5
09:Welcome!
i=9--nCount=5
10:Welcome!
i=10--nCount=5
11:Welcome!
i=11--nCount=5
12:Welcome!
i=12--nCount=5
13:Welcome!
i=13--nCount=5
14:Welcome!
i=14--nCount=5
15:Welcome!
i=15--nCount=5
16:Welcome!
i=16--nCount=5
17:Welcome!
i=17--nCount=5
18:Welcome!
i=18--nCount=5
19:Welcome!
i=19--nCount=5
20:Welcome!
i=20--nCount=5
21:Welcome!
i=21--nCount=5
22:Welcome!
i=22--nCount=5
23:Welcome!
i=23--nCount=5
24:Welcome!
i=24--nCount=5
25:Welcome!
i=25--nCount=5
26:Welcome!
i=26--nCount=5
27:Welcome!
i=27--nCount=5
28:Welcome!
i=28--nCount=5
29:Welcome!
i=29--nCount=5
30:Welcome!
i=30--nCount=5
31:Welcome!

Limitation

1s, 1024KiB for each test case.

函数

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
10
Start at
2024-4-30 0:00
End at
2024-5-15 0:00
Duration
360 hour(s)
Host
Partic.
6