Borderou de evaluare (job #2605666)

Utilizator alex_benescubenescu alexandru alex_benescu Data 25 aprilie 2020 17:14:45
Problema Reactivi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] #import<bits/stdc++.h> ^~~~~~ main.cpp:2:120: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] std::ifstream f("reactivi.in");std::ofstream g("reactivi.out");std::pair<int,int>v[8003];int i,n,nr,cri((-1<<30));main(){f>>n;for(i=0;i<n;++i)f>>v[i].second>>v[i].first;std::sort(v,v+n);for(i=0;i<n;++i)if(cri<v[i].second)nr++,cri=v[i].first;g<<nr<<"\n";} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK1010
22ms131kbOK1010
33ms131kbOK1010
46ms262kbOK1010
54ms131kbOK1060
62ms131kbOK10
77ms262kbOK10
83ms131kbOK10
97ms262kbOK10
102ms131kbOK10
Punctaj total100

Ceva nu functioneaza?