Loading [Contrib]/a11y/accessibility-menu.js
上傳編號 202923
上傳時間 2024-07-27 18:17:01
題目 小偷Litten(測試題)
使用者 anonymous
總得分 0, CE in 0 ms
# State Runtime Memory
0 CE 0 0
1 CE 0 0
2 CE 0 0
3 CE 0 0
4 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