Problema | Palindrom_Ciclic | Operații I/O |
palindrom_ciclic.in /palindrom_ciclic.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54011267 | Utilizator | |
Fișier | palindrom_ciclic.cpp | Dimensiune | 943 B |
Data încărcării | 17 Noiembrie 2024, 20:07 | Scor / rezultat | Eroare de compilare |
palindrom_ciclic.cpp:5:1: error: 'ifstream' does not name a type ifstream f("palindrom_ciclic.in"); ^ palindrom_ciclic.cpp:6:1: error: 'ofstream' does not name a type ofstream g(" palindrom_ciclic.out") ^ palindrom_ciclic.cpp: In function 'void V(int, int*)': palindrom_ciclic.cpp:47:16: error: invalid operands of types 'int' and 'const char [3]' to binary 'operator<<' g<<"DA"<<" "<<cnt; ^ palindrom_ciclic.cpp:55:29: error: 'swap' was not declared in this scope swap( v[j],v[j+1]); ^ palindrom_ciclic.cpp:55:29: note: suggested alternatives: In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from palindrom_ciclic.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2717:5: note: 'std::swap' swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ In file included from /usr/include/c++/4.8/exception:152:0, from /usr/include/c++/4.8/ios:39, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from palindrom_ciclic.cpp:1: /usr/include/c++/4.8/bits/exception_ptr.h:160:5: note: 'std::__exception_ptr::swap' swap(exception_ptr& __lhs, exception_ptr& __rhs) ^ palindrom_ciclic.cpp:60:16: error: invalid operands of types 'int' and 'const char [3]' to binary 'operator<<' g<<"NU"; ^ palindrom_ciclic.cpp: In function 'int main()': palindrom_ciclic.cpp:69:4: error: 'f' was not declared in this scope f>>n; ^ palindrom_ciclic.cpp:68:8: warning: unused variable 'p' [-Wunused-variable] int p,n,v[100],i; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Palindrom_Ciclic 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ă.