Pagini recente » Borderou de evaluare (job #2287346) | Borderou de evaluare (job #2840511) | Borderou de evaluare (job #3043155) | Borderou de evaluare (job #1471165) | Borderou de evaluare (job #1724111)
Borderou de evaluare (job #1724111)
Raport evaluator
Compilare:
user.cpp: In function ‘void sortBand()’:
user.cpp:66:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ;i < V.size() - 1; i++)
^
user.cpp: In function ‘int findBand(std::pair<double, double>)’:
user.cpp:95:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(sol == V.size() - 1)
^
user.cpp: In function ‘void binarySearch(std::pair<double, double>)’:
user.cpp:108:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(sol + s >= Band[poz].size())
^
user.cpp:105:9: warning: unused variable ‘left’ [-Wunused-variable]
int left = 0, right = Band[poz].size() - 1, mid, sol = -1;
^
user.cpp:105:19: warning: unused variable ‘right’ [-Wunused-variable]
int left = 0, right = Band[poz].size() - 1, mid, sol = -1;
^
user.cpp:105:49: warning: unused variable ‘mid’ [-Wunused-variable]
int left = 0, right = Band[poz].size() - 1, mid, sol = -1;
^
user.cpp: In function ‘void Read()’:
user.cpp:18:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
^
user.cpp:20:80: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&Point[i].first,&Point[i].second), Abs[Point[i].first] = 1;
^
user.cpp: In function ‘int main()’:
user.cpp:130:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("poligon.in","r",stdin);
^
user.cpp:138:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&p.first, &p.second);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1404kb | Okay! | 10 |
2 | 0ms | 1416kb | Okay! | 10 |
3 | 0ms | 1440kb | Okay! | 10 |
4 | 4ms | 1504kb | Okay! | 10 |
5 | 8ms | 1620kb | Okay! | 10 |
6 | 188ms | 4696kb | Okay! | 10 |
7 | 44ms | 2320kb | Okay! | 10 |
8 | 72ms | 2876kb | Okay! | 10 |
9 | 120ms | 3544kb | Okay! | 10 |
10 | 164ms | 4436kb | Okay! | 10 |
Punctaj total | 100 |