Borderou de evaluare (job #2029443)
Utilizator | Data | 30 septembrie 2017 09:45:44 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:2:131: error: ‘sort’ was not declared in this scope
std::ifstream f("algsort.in");std::ofstream g("algsort.out");int n,i,v[500005];int main(){f>>n;for(;i<n;i++)f>>v[i];std:sort(v,v+n);for(;i<n;i++)g<<v[i]<<' ';}
^
user.cpp:2:131: note: suggested alternative:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:5497:5: note: ‘std::sort’
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
user.cpp:2:117: warning: label ‘std’ defined but not used [-Wunused-label]
std::ifstream f("algsort.in");std::ofstream g("algsort.out");int n,i,v[500005];int main(){f>>n;for(;i<n;i++)f>>v[i];std:sort(v,v+n);for(;i<n;i++)g<<v[i]<<' ';}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !