Borderou de evaluare (job #2911943)

Utilizator redstonegamer22Andrei Ion redstonegamer22 Data 5 iulie 2022 16:20:06
Problema Stramosi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp:5:95: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 5 | __gnu_cxx::rope<int> v[300009];std::ifstream w("stramosi.in");std::ofstream e("stramosi.out");main(){int n,m,x,q; w>>n>>m;for(q=1;q<=n;q++){w>>x;v[q]=v[x]+q;}while(m--){w>>x>>q;e<<(b>q?l[b-q-1]:0)<<'\n';}} | ^~~~ main.cpp: In function 'int main()': main.cpp:5:183: warning: comparison of integer expressions of different signedness: '__gnu_cxx::rope<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 5 | __gnu_cxx::rope<int> v[300009];std::ifstream w("stramosi.in");std::ofstream e("stramosi.out");main(){int n,m,x,q; w>>n>>m;for(q=1;q<=n;q++){w>>x;v[q]=v[x]+q;}while(m--){w>>x>>q;e<<(b>q?l[b-q-1]:0)<<'\n';}} | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
15ms2609kbOK!10
25ms2797kbOK!10
311ms3022kbOK!10
460ms6246kbOK!10
534ms6307kbOK!10
6256ms14303kbOK!10
7153ms21770kbOK!10
8428ms20647kbOK!10
9196ms65556kbMemory limit exceeded0
10230ms65552kbMemory limit exceeded0
Punctaj total80

Ceva nu functioneaza?