제출 #132883

#제출 시각아이디문제언어결과실행 시간메모리
132883DanerZeinAliens (IOI16_aliens)C++14
4 / 100
3 ms376 KiB
#include "aliens.h" #include <bits/stdc++.h> using namespace std; int lan[110][110]; long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c) { memset(lan,-1,sizeof lan); for(int i=0;i<r.size();i++){ lan[r[i]][c[i]]=1; } long long d=0; for(int i=0;i<r.size();i++){ int x,y; x=min(r[i],c[i]); y=max(r[i],c[i]); for(int j=x;j<=y;j++){ for(int k=x;k<=y;k++){ lan[j][k]=2; } } } for(int i=0;i<m;i++){ for(int j=0;j<m;j++){ if(lan[i][j]==2){ d++; } } } //cout<<d<<endl; return d; }

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

aliens.cpp: In function 'long long int take_photos(int, int, int, std::vector<int>, std::vector<int>)':
aliens.cpp:7:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<r.size();i++){
               ~^~~~~~~~~
aliens.cpp:11:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<r.size();i++){
               ~^~~~~~~~~
#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...