Submission #165507

# Submission time Handle Problem Language Result Execution time Memory
165507 2019-11-27T11:45:01 Z Sensei Strah (COCI18_strah) C++17
0 / 110
278 ms 376 KB
#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

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 time Memory Grader output
1 Incorrect 2 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 60 ms 252 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 278 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 89 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 17 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 224 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -