Submission #923345

#TimeUsernameProblemLanguageResultExecution timeMemory
923345IsamBold (COCI21_bold)C++17
50 / 50
1 ms604 KiB
#include<bits/stdc++.h> using namespace std; constexpr int sz = 2e5 + 5; int n, m; bool h[101][101]; string c; signed main(){ ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); cin >> n >> m; for(register int i = 1; i <= n; ++i){ cin >> c; for(register int j = 1; j <= m; ++j){ if(c[j-1] == '#'){ h[i][j] = h[i+1][j] = h[i][j+1] = h[i+1][j+1] = true; } } } for(register int i = 1; i <= n; ++i){ for(register int j = 1; j <= m; ++j){ cout << (h[i][j] ? '#' : '.'); } cout << '\n'; } return 0; }

Compilation message (stderr)

bold.cpp: In function 'int main()':
bold.cpp:14:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   14 |  for(register int i = 1; i <= n; ++i){
      |                   ^
bold.cpp:16:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   16 |   for(register int j = 1; j <= m; ++j){
      |                    ^
bold.cpp:22:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   22 |  for(register int i = 1; i <= n; ++i){
      |                   ^
bold.cpp:23:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   23 |   for(register int j = 1; j <= m; ++j){
      |                    ^
#Verdict Execution timeMemoryGrader output
Fetching results...