Submission #484575

#TimeUsernameProblemLanguageResultExecution timeMemory
484575rainboyBold (COCI21_bold)C11
50 / 50
1 ms204 KiB
#include <stdio.h> #define N 100 #define M 100 int main() { static char cc[N][M + 1]; int n, m, i, j; scanf("%d%d", &n, &m); for (i = 0; i < n; i++) scanf("%s", cc[i]); for (i = n - 1; i >= 0; i--) for (j = m - 1; j >= 0; j--) if (cc[i][j] == '#') cc[i][j + 1] = cc[i + 1][j] = cc[i + 1][j + 1] = '#'; for (i = 0; i < n; i++) printf("%s\n", cc[i]); return 0; }

Compilation message (stderr)

bold.c: In function 'main':
bold.c:10:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   10 |  scanf("%d%d", &n, &m);
      |  ^~~~~~~~~~~~~~~~~~~~~
bold.c:12:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |   scanf("%s", cc[i]);
      |   ^~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...