Borderou de evaluare (job #2616982)

Utilizator pro119Manea Dumitru pro119 Data 20 mai 2020 15:39:32
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int bsearch(std::vector<int>, int)': main.cpp:12:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (a[mid]==x && (a[mid+1]!=x || mid+1>a.size()-1)) ~~~~~^~~~~~~~~~~ main.cpp: In function 'int lwr_bound(std::vector<int>, int)': main.cpp:26:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (a[mid]<=x && (a[mid+1]>x || mid+1>a.size()-1)) return mid+1; ~~~~~^~~~~~~~~~~ main.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ main.cpp: In function 'int upp_bound(std::vector<int>, int)': main.cpp:39:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1500ms131kbTime limit exceeded00
2501ms131kbTime limit exceeded00
3500ms131kbTime limit exceeded00
4503ms131kbTime limit exceeded00
5500ms262kbTime limit exceeded00
6503ms585kbTime limit exceeded0
7501ms917kbTime limit exceeded00
8502ms917kbTime limit exceeded0
9503ms917kbTime limit exceeded0
10501ms917kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?