제출 #42277

#제출 시각아이디문제언어결과실행 시간메모리
42277rlqja2222보물 찾기 (CEOI13_treasure2)C++14
3 / 100
2 ms876 KiB
#include "treasure.h"
#include <cstdio>
int row[101];
int col[101];

void findTreasure(int N) {
	int n = 0;
	for (int r = 1; r <= N; r++) {
		for (int c = 1; c <= N; c++) {
			int t = countTreasure(r, c, r, c);
			if (t) row[n] = r, col[n] = c, n++;
		}
	}
	for(int i = 0; i < n; i++)
		Report(row[i], col[i]);
}

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

grader.c: In function 'int main()':
grader.c:63:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         my_assert(strlen(A[i]+1) == N, "each line of the map must contain N zeroes or ones (before loop)");
                                  ^
#Verdict Execution timeMemoryGrader output
Fetching results...