#244
CifreOrd
Se dau n
cifre zecimale. Să se afişeze aceste cifre în ordine crescătoare.
Problema | CifreOrd | Operații I/O |
cifreord.in /cifreord.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53930571 | Utilizator | |
Fișier | cifreord.cpp | Dimensiune | 391 B |
Data încărcării | 15 Noiembrie 2024, 08:34 | Scor / rezultat | Eroare de compilare |
cifreord.cpp:2:7: error: expected nested-name-specifier before 'namescape' using namescape std; ^ cifreord.cpp:2:7: error: 'namescape' has not been declared cifreord.cpp:2:17: error: expected ';' before 'std' using namescape std; ^ cifreord.cpp:2:17: error: 'std' does not name a type cifreord.cpp: In function 'int main()': cifreord.cpp:6:5: error: 'ifstream' was not declared in this scope ifstream fin("cifreord.in"); ^ cifreord.cpp:6:5: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cifreord.cpp:1: /usr/include/c++/4.8/iosfwd:157:34: note: 'std::ifstream' typedef basic_ifstream<char> ifstream; ^ cifreord.cpp:6:14: error: expected ';' before 'fin' ifstream fin("cifreord.in"); ^ cifreord.cpp:7:5: error: 'ofstream' was not declared in this scope ofstream fout("cifreord.out"); ^ cifreord.cpp:7:5: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cifreord.cpp:1: /usr/include/c++/4.8/iosfwd:160:34: note: 'std::ofstream' typedef basic_ofstream<char> ofstream; ^ cifreord.cpp:7:14: error: expected ';' before 'fout' ofstream fout("cifreord.out"); ^ cifreord.cpp:8:5: error: 'fin' was not declared in this scope fin>>n; ^ cifreord.cpp:18:8: error: 'fout' was not declared in this scope fout<<endl; ^ cifreord.cpp:18:14: error: 'endl' was not declared in this scope fout<<endl; ^ cifreord.cpp:18:14: note: suggested alternative: In file included from /usr/include/c++/4.8/istream:39:0, from /usr/include/c++/4.8/fstream:38, from cifreord.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: 'std::endl' endl(basic_ostream<_CharT, _Traits>& __os) ^ cifreord.cpp:20:3: error: 'fout' was not declared in this scope fout<<i<<" "; ^ cifreord.cpp:23:5: error: 'fout' was not declared in this scope fout.close(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CifreOrd face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.