Problem tiles
User justin271828
Submission Time 2026-04-04 12:30:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tiles.cpp: In function ‘int calc(int)’:
tiles.cpp:18:12: error: a function-definition is not allowed here before ‘{’ token
18 | int main() {
| ^
tiles.cpp:26:54: error: expected ‘}’ at end of input
26 | arr[i] = (arr[i] & ((int)(s[j][i] == '.') << j));}}
| ^
tiles.cpp:9:21: note: to match this ‘{’
9 | int calc(int index) {
| ^