제출 #1059658

#제출 시각아이디문제언어결과실행 시간메모리
1059658tolbi축구 경기장 (IOI23_soccer)C++17
0 / 100
1 ms348 KiB
#include "soccer.h" int biggest_stadium(int N, std::vector<std::vector<int>> F) { int x=-1,y=-1; for (int i =0 ; i < F.size(); i++){ for (int j = 0; j < F[i].size(); j++){ if (F[i][j]==1){ x=i,y=j; } } } if (x==-1){ return N*N; } else { return std::max(std::max(x,N-x-1),std::max(y,N-y-1))*N;; } }

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

soccer.cpp: In function 'int biggest_stadium(int, std::vector<std::vector<int> >)':
soccer.cpp:6:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    6 |     for (int i =0 ; i < F.size(); i++){
      |                     ~~^~~~~~~~~~
soccer.cpp:7:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    7 |         for (int j = 0; j < F[i].size(); 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...