Pagini recente » Borderou de evaluare (job #753456) | Borderou de evaluare (job #2827451) | Borderou de evaluare (job #2180075) | Borderou de evaluare (job #1151719) | Borderou de evaluare (job #2577251)
Borderou de evaluare (job #2577251)
Raport evaluator
Compilare:
main.cpp: In function 'int find(std::vector<int>&, int)':
main.cpp:29:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (;p<v.size();p<<=1);
~^~~~~~~~~
main.cpp:31:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (st + p < v.size() && v[st+p] < x) st += p;
~~~~~~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:57:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x < v[c].size() && v[c][x] == a){
~~^~~~~~~~~~~~~
main.cpp:70:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (dr < v[c].size() && v[c][dr] <= b) dr++;
~~~^~~~~~~~~~~~~
main.cpp:39:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("marbles.in","r",stdin);
^
main.cpp:40:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("marbles.out","w",stdout);
^
main.cpp:42:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:44:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &pos, &c);
^
main.cpp:51:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &t, &a, &b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | OK | 10 |
2 | 3ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 9ms | 131kb | OK | 10 |
5 | 30ms | 262kb | OK | 10 |
6 | 50ms | 262kb | OK | 10 |
7 | 71ms | 262kb | OK | 10 |
8 | 197ms | 524kb | OK | 10 |
9 | 196ms | 655kb | OK | 10 |
10 | 252ms | 786kb | Time limit exceeded | 0 |
Punctaj total | 90 |