제출 #108109

#제출 시각아이디문제언어결과실행 시간메모리
108109wilwxkTracks in the Snow (BOI13_tracks)C++11
2.19 / 100
87 ms16136 KiB
#include <bits/stdc++.h> using namespace std; const int MAXN=4e3+5; int n, m, aa, bb; int main() { scanf("%d %d", &n, &m); for(int i=1; i<=n; i++) { char c[MAXN]; scanf(" %s", c); for(int j=1; j<=m; j++) { if(c[i]=='R') aa=1; if(c[i]=='F') bb=1; } } printf("%d\n", aa+bb); }

컴파일 시 표준 에러 (stderr) 메시지

tracks.cpp: In function 'int main()':
tracks.cpp:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &n, &m);
  ~~~~~^~~~~~~~~~~~~~~~~
tracks.cpp:10:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   char c[MAXN]; scanf(" %s", c);
                 ~~~~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...