Mengerio kempinė

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.resulttimemessage