Submission #165507

#TimeUsernameProblemLanguageResultExecution timeMemory
165507SenseiStrah (COCI18_strah)C++17
0 / 110
278 ms376 KiB
#include <bits/stdc++.h> using namespace std; const int MAXN = 2e3; char a[MAXN + 7][MAXN + 7]; int n[MAXN + 7][MAXN + 7]; int ne[MAXN + 7][MAXN + 7]; int e[MAXN + 7][MAXN + 7]; int se[MAXN + 7][MAXN + 7]; int s[MAXN + 7][MAXN + 7]; int sw[MAXN + 7][MAXN + 7]; int w[MAXN + 7][MAXN + 7]; int nw[MAXN + 7][MAXN + 7]; int main () { int N, M; scanf("%d %d", &N, &M); for (int i = 1; i <= N; i++) { for (int j = 1; j <= M; j++) { scanf("%d", &a[i][j]); } } return 0; }

Compilation message (stderr)

strah.cpp: In function 'int main()':
strah.cpp:25:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
    scanf("%d", &a[i][j]);
                ~~~~~~~~^
strah.cpp:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &N, &M);
  ~~~~~^~~~~~~~~~~~~~~~~
strah.cpp:25:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d", &a[i][j]);
    ~~~~~^~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...