Borderou de evaluare (job #1901452)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 3 martie 2017 23:11:08
Problema Towers Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void make_r()’: user.cpp:27:29: warning: capture of variable ‘v’ with non-automatic storage duration [enabled by default] sort(begin(r), end(r), [v, s](int a, int b) { return (s[a] == s[b]) ? (v[a] > v[b]) : (s[a] < s[b]); }); ^ user.cpp:8:13: note: ‘std::vector<int> v’ declared here vector<int> v, s, r; ^ user.cpp:27:32: warning: capture of variable ‘s’ with non-automatic storage duration [enabled by default] sort(begin(r), end(r), [v, s](int a, int b) { return (s[a] == s[b]) ? (v[a] > v[b]) : (s[a] < s[b]); }); ^ user.cpp:8:16: note: ‘std::vector<int> s’ declared here vector<int> v, s, r; ^ user.cpp:40:29: warning: capture of variable ‘v’ with non-automatic storage duration [enabled by default] sort(begin(r), end(r), [v](int a, int b) { return v[a] < v[b]; }); } ^ user.cpp:8:13: note: ‘std::vector<int> v’ declared here vector<int> v, s, r; ^ user.cpp: In function ‘int main()’: user.cpp:69:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ant + msk < r.size() && v[r[ant + msk]] < t) ^ user.cpp:75:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ant + msk < r.size() && v[r[ant + msk]] < t) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbIncorect0
20ms452kbIncorect0
30ms456kbIncorect0
40ms456kbIncorect0
532ms1052kbIncorect0
668ms1584kbIncorect0
7320ms5012kbIncorect0
8436ms7336kbIncorect0
9692ms10292kbIncorect0
10844ms12140kbIncorect0
11112ms2372kbIncorect0
12388ms5252kbIncorect0
13496ms7336kbIncorect0
14612ms8444kbIncorect0
15756ms10292kbIncorect0
16904ms12140kbIncorect0
17912ms12140kbIncorect0
18956ms12052kbOK5
19992ms12052kbOK5
20820ms12140kbIncorect0
Punctaj total10

Ceva nu functioneaza?