Mengerio kempinė

Taškai: 0

Compile: FAIL

kempine.cpp: In function ‘char c(int)’: kempine.cpp:6:16: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive] 6 | return "#"; | ^~~ | | | const char* kempine.cpp:8:15: error: invalid type argument of unary ‘*’ (have ‘int’) 8 | int x = 3**(n-1); | ^~~~~~ kempine.cpp:13:36: error: invalid types ‘char[int]’ for array subscript 13 | bigArr[i][j] = smallArr[i][j]; | ^ kempine.cpp:18:38: error: invalid types ‘char[int]’ for array subscript 18 | bigArr[x+i][j] = smallArr[i][j]; | ^ kempine.cpp:23:40: error: invalid types ‘char[int]’ for array subscript 23 | bigArr[2*x+i][j] = smallArr[i][j]; | ^ kempine.cpp:28:38: error: invalid types ‘char[int]’ for array subscript 28 | bigArr[i][x+j] = smallArr[i][j]; | ^ kempine.cpp:33:30: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive] 33 | bigArr[i][x+j] = "."; | ^~~ | | | const char* kempine.cpp:38:42: error: invalid types ‘char[int]’ for array subscript 38 | bigArr[2*x+i][x+j] = smallArr[i][j]; | ^ kempine.cpp:43:40: error: invalid types ‘char[int]’ for array subscript 43 | bigArr[i][2*x+j] = smallArr[i][j]; | ^ kempine.cpp:48:42: error: invalid types ‘char[int]’ for array subscript 48 | bigArr[x+i][2*x+j] = smallArr[i][j]; | ^ kempine.cpp:53:44: error: invalid types ‘char[int]’ for array subscript 53 | bigArr[2*x+i][2*x+j] = smallArr[i][j]; | ^ kempine.cpp:56:12: error: invalid conversion from ‘char (*)[(x * 3)]’ to ‘char’ [-fpermissive] 56 | return bigArr; | ^~~~~~ | | | char (*)[(x * 3)] kempine.cpp: In function ‘int main()’: kempine.cpp:63:27: error: invalid type argument of unary ‘*’ (have ‘int’) 63 | for (int i = 0; i < 3**a; i++) { | ^~ kempine.cpp:64:31: error: invalid type argument of unary ‘*’ (have ‘int’) 64 | for (int j = 0; j < 3**a; j++) { | ^~ kempine.cpp:65:24: error: invalid types ‘char[int]’ for array subscript 65 | cout << arr[i][j] << " "; | ^

nr.resulttimemessage