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 | #54178015 | Utilizator | |
Fișier | palindrom_ciclic.cpp | Dimensiune | 725 B |
Data încărcării | 21 Noiembrie 2024, 13:12 | Scor / rezultat | Eroare de compilare |
palindrom_ciclic.cpp: In function 'void citire()': palindrom_ciclic.cpp:10:5: error: reference to 'cin' is ambiguous cin>>n; ^ palindrom_ciclic.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("halfsort1.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from palindrom_ciclic.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ palindrom_ciclic.cpp:10:10: error: 'n' was not declared in this scope cin>>n; ^ palindrom_ciclic.cpp:12:9: error: reference to 'cin' is ambiguous cin>>v[i]; ^ palindrom_ciclic.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("halfsort1.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from palindrom_ciclic.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ palindrom_ciclic.cpp:12:14: error: 'v' was not declared in this scope cin>>v[i]; ^ palindrom_ciclic.cpp: In function 'void permutare(int, int, int*)': palindrom_ciclic.cpp:17:13: error: declaration of 'int p [1005]' shadows a parameter int p[1005]; ^ palindrom_ciclic.cpp: In function 'int main()': palindrom_ciclic.cpp:39:19: error: 'n' was not declared in this scope for(int i=1; i<=n; i++) ^ palindrom_ciclic.cpp:41:14: error: 'a' was not declared in this scope if(pal(n,a)==1) ^ palindrom_ciclic.cpp:43:9: error: reference to 'cout' is ambiguous cout<<"DA"<<" "<<i-1; ^ palindrom_ciclic.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("halfsort1.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from palindrom_ciclic.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ palindrom_ciclic.cpp:44:9: error: 'ok' was not declared in this scope ok=1; ^ palindrom_ciclic.cpp:47:13: error: 'a' was not declared in this scope per(n,a); ^ palindrom_ciclic.cpp:47:14: error: 'per' was not declared in this scope per(n,a); ^ palindrom_ciclic.cpp:49:6: error: 'ok' was not declared in this scope if(ok==0) ^ palindrom_ciclic.cpp:50:3: error: reference to 'cout' is ambiguous cout<<"NU"; ^ palindrom_ciclic.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("halfsort1.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from palindrom_ciclic.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
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ă.