Mengerio kempinė

Taškai: 0

Compile: FAIL

kempine.cpp: In function ‘void c(int, char&)’: kempine.cpp:6:16: error: return-statement with a value, in function returning ‘void’ [-fpermissive] 6 | return '#'; | ^~~ kempine.cpp:10:12: error: invalid conversion from ‘char (*)[x]’ to ‘char’ [-fpermissive] 10 | c(n-1, smallArr); | ^~~~~~~~ | | | char (*)[x] kempine.cpp:4:21: note: initializing argument 2 of ‘void c(int, char&)’ 4 | void c(int n, char &bigArr) { | ~~~~~~^~~~~~ kempine.cpp:10:12: error: cannot bind rvalue ‘(char)((char (*)[x])(& smallArr))’ to ‘char&’ 10 | c(n-1, smallArr); | ^~~~~~~~ kempine.cpp:13:19: error: invalid types ‘char[int]’ for array subscript 13 | bigArr[i][j] = smallArr[i][j]; | ^ kempine.cpp:18:19: error: invalid types ‘char[int]’ for array subscript 18 | bigArr[x+i][j] = smallArr[i][j]; | ^ kempine.cpp:23:19: error: invalid types ‘char[int]’ for array subscript 23 | bigArr[2*x+i][j] = smallArr[i][j]; | ^ kempine.cpp:28:19: error: invalid types ‘char[int]’ for array subscript 28 | bigArr[i][x+j] = smallArr[i][j]; | ^ kempine.cpp:33:19: error: invalid types ‘char[int]’ for array subscript 33 | bigArr[x+i][x+j] = '.'; | ^ kempine.cpp:38:19: error: invalid types ‘char[int]’ for array subscript 38 | bigArr[2*x+i][x+j] = smallArr[i][j]; | ^ kempine.cpp:43:19: error: invalid types ‘char[int]’ for array subscript 43 | bigArr[i][2*x+j] = smallArr[i][j]; | ^ kempine.cpp:48:19: error: invalid types ‘char[int]’ for array subscript 48 | bigArr[x+i][2*x+j] = smallArr[i][j]; | ^ kempine.cpp:53:19: error: invalid types ‘char[int]’ for array subscript 53 | bigArr[2*x+i][2*x+j] = smallArr[i][j]; | ^ kempine.cpp:56:12: error: return-statement with a value, in function returning ‘void’ [-fpermissive] 56 | return bigArr; | ^~~~~~ kempine.cpp: In function ‘int main()’: kempine.cpp:64:10: error: invalid conversion from ‘char (*)[a]’ to ‘char’ [-fpermissive] 64 | c(a, arr); | ^~~ | | | char (*)[a] kempine.cpp:4:21: note: initializing argument 2 of ‘void c(int, char&)’ 4 | void c(int n, char &bigArr) { | ~~~~~~^~~~~~ kempine.cpp:64:10: error: cannot bind rvalue ‘(char)((char (*)[a])(& arr))’ to ‘char&’ 64 | c(a, arr); | ^~~

nr.resulttimemessage