Borderou de evaluare (job #2577250)
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:55:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x < v[c].size() && v[c][x] == a){
~~^~~~~~~~~~~~~
main.cpp:68: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:49: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 | 2ms | 131kb | OK | 10 |
2 | 3ms | 131kb | Incorect | 0 |
3 | 4ms | 131kb | Incorect | 0 |
4 | 12ms | 131kb | Incorect | 0 |
5 | 59ms | 262kb | Incorect | 0 |
6 | 61ms | 262kb | Incorect | 0 |
7 | 75ms | 262kb | Incorect | 0 |
8 | 170ms | 524kb | Incorect | 0 |
9 | 233ms | 655kb | Incorect | 0 |
10 | 251ms | 786kb | Time limit exceeded | 0 |
Punctaj total | 10 |