Mengerio kempinė
- [1] 2022-03-21 20:43 (0)
- [2] 2022-03-21 20:46 (0)
- [3] 2022-03-21 20:47 (62.5)
- [4] 2022-03-21 20:48 (75)
- [5] 2022-03-21 20:49 (75)
Taškai: 0
Compile: FAIL
kempine.cpp:8:33: error: use of ‘auto’ in parameter declaration only available with -std=c++14 or -std=gnu++14 vector<vector<char>> rek(int n, auto v, int a, int b){ ^ kempine.cpp: In function ‘std::vector<std::vector<char> > rek(int, int, int, int)’: kempine.cpp:10:6: error: invalid types ‘int[int]’ for array subscript v[a][b]='#'; ^ kempine.cpp:16:6: error: cannot convert ‘std::vector<std::vector<char> >’ to ‘int’ in assignment v=rek(n-1,v,a+pow(3,n-2)*i,b+pow(3,n-2)*j); ^ kempine.cpp:18:9: error: could not convert ‘v’ from ‘int’ to ‘std::vector<std::vector<char> >’ return v; ^ kempine.cpp: In function ‘int main()’: kempine.cpp:26:16: error: cannot convert ‘std::vector<std::vector<char> >’ to ‘int’ for argument ‘2’ to ‘std::vector<std::vector<char> > rek(int, int, int, int)’ v=rek(n,v, 0,0); ^
nr. | result | time | message |
---|