Pagini recente » Cod sursa (job #42007) | Borderou de evaluare (job #2231120) | Borderou de evaluare (job #2923270) | Borderou de evaluare (job #1116994) | Borderou de evaluare (job #2616980)
Borderou de evaluare (job #2616980)
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:25: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: In function 'int bsearch(std::vector<int>, int)':
main.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int lwr_bound(std::vector<int>, int)':
main.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int upp_bound(std::vector<int>, int)':
main.cpp:38:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | Incorect | 0 | 0 |
| 2 | 3ms | 131kb | Incorect | 0 | 0 |
| 3 | 3ms | 131kb | Incorect | 0 | 0 |
| 4 | 9ms | 131kb | Incorect | 0 | 0 |
| 5 | 216ms | 393kb | Incorect | 0 | 0 |
| 6 | 503ms | 716kb | Time limit exceeded | 0 |
| 7 | 502ms | 1040kb | Time limit exceeded | 0 | 0 |
| 8 | 503ms | 1040kb | Time limit exceeded | 0 |
| 9 | 501ms | 1040kb | Time limit exceeded | 0 |
| 10 | 501ms | 1040kb | Time limit exceeded | 0 |
| Punctaj total | 0 |