Mengerio kempinė

Taškai: 0

Compile: FAIL

kempine.cpp:4:5: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 4 | char[][] c(int n) { | ^ kempine.cpp:4:5: error: structured binding declaration cannot have type ‘char’ 4 | char[][] c(int n) { | ^~ kempine.cpp:4:5: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ kempine.cpp:4:5: error: empty structured binding declaration kempine.cpp:4:7: error: expected initializer before ‘[’ token 4 | char[][] c(int n) { | ^ kempine.cpp: In function ‘int main()’: kempine.cpp:63:9: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 63 | char[][] arr = c(a); | ^ kempine.cpp:63:9: error: structured binding declaration cannot have type ‘char’ 63 | char[][] arr = c(a); | ^~ kempine.cpp:63:9: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ kempine.cpp:63:9: error: empty structured binding declaration kempine.cpp:63:11: error: expected initializer before ‘[’ token 63 | char[][] arr = c(a); | ^ kempine.cpp:66:21: error: ‘arr’ was not declared in this scope 66 | cout << arr[i][j]; | ^~~

nr.resulttimemessage