Mengerio kempinė
- [1] 2024-11-09 20:08 (0)
- [2] 2024-11-09 20:13 (0)
- [3] 2024-11-09 20:31 (0)
- [4] 2024-11-09 20:36 (0)
- [5] 2024-11-16 10:17 (0)
- [6] 2024-11-16 10:18 (0)
- [7] 2024-11-16 10:22 (0)
- [8] 2024-11-16 10:23 (0)
- [9] 2024-11-16 10:24 (0)
- [10] 2024-11-16 10:31 (100)
- [11] 2024-11-16 10:34 (100)
Taškai: 0
Compile: FAIL
kempine.cpp: In function ‘void c(int, char&)’: kempine.cpp:6:15: error: invalid types ‘char[int]’ for array subscript 6 | bigArr[0][0] = '#'; | ^ 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: 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. | result | time | message |
---|