Loading [Contrib]/a11y/accessibility-menu.js
Toggle navigation
Sky Online Judge
Problems
Challenges
Contest
Tools
Coder
Scoreboard
Code
Dev Message
Discuss
Make-A-Wish
LOGIN
上傳編號
202923
上傳時間
2024-07-27 18:17:01
題目
小偷Litten(測試題)
使用者
anonymous
總得分
0,
Compile Error
CE
in 0 ms
#
State
Runtime
Memory
0
Compile Error
CE
0
0
1
Compile Error
CE
0
0
2
Compile Error
CE
0
0
3
Compile Error
CE
0
0
4
Compile Error
CE
0
0
Judge Information
./test.cpp: In instantiation of 'T solve(T, int) [with T = int]':
./test.cpp:8:15: required from here
./test.cpp:4:45: error: cannot conve
1
2
3
4
5
6
7
8
9
#include
<vector>
template
<
class
T
>
T
solve
(
T
a
,
int
s
)
{
if
(
!
s
)
return
a
;
return
solve
(
std
::
vector
<
T
>
(
1
,
a
)
,
s
-
1
)
;
}
int
main
(
)
{
solve
(
3
,
3
)
;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX