#1923
egale
Afişaţi, în ordine crescătoare, toate numerele dintr-un anumit interval care au toate cifrele egale.
Pregătire clasa a IX-a, C.N. "Frații Buzești" - Craiova
Problema | egale | Operații I/O |
egale.in /egale.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 8 MB
/
Stivă 8 MB
|
Id soluție | #53505151 | Utilizator | |
Fișier | egale.cpp | Dimensiune | 987 B |
Data încărcării | 03 Noiembrie 2024, 15:18 | Scor / rezultat | Eroare de compilare |
egale.cpp:3:13: error: variable 'std::ifstream cin' has initializer but incomplete type ifstream cin("egale.in"); ^ egale.cpp:4:14: error: variable 'std::ofstream cout' has initializer but incomplete type ofstream cout("egale.out"); ^ egale.cpp: In function 'int main()': egale.cpp:8:5: error: reference to 'cin' is ambiguous cin>>T; ^ egale.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("egale.in"); ^ In file included from egale.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ egale.cpp:12:9: error: reference to 'cin' is ambiguous cin>>a>>b; ^ egale.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("egale.in"); ^ In file included from egale.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ egale.cpp:17:9: error: reference to 'cout' is ambiguous cout<<c<<" "; ^ egale.cpp:4:10: note: candidates are: <typeprefixerror>cout ofstream cout("egale.out"); ^ In file included from egale.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ egale.cpp:27:9: error: reference to 'cout' is ambiguous cout<<xx<<" "; ^ egale.cpp:4:10: note: candidates are: <typeprefixerror>cout ofstream cout("egale.out"); ^ In file included from egale.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ egale.cpp:36:9: error: reference to 'cin' is ambiguous cin>>x; ^ egale.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("egale.in"); ^ In file included from egale.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ egale.cpp:41:9: error: reference to 'cout' is ambiguous cout<<i<<" "; ^ egale.cpp:4:10: note: candidates are: <typeprefixerror>cout ofstream cout("egale.out"); ^ In file included from egale.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ egale.cpp:47:9: error: reference to 'cout' is ambiguous cout<<xa; ^ egale.cpp:4:10: note: candidates are: <typeprefixerror>cout ofstream cout("egale.out"); ^ In file included from egale.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ egale.cpp:49:9: error: reference to 'cout' is ambiguous cout<<" "; ^ egale.cpp:4:10: note: candidates are: <typeprefixerror>cout ofstream cout("egale.out"); ^ In file included from egale.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ egale.cpp:35:11: warning: unused variable 'xa' [-Wunused-variable] int xa; ^ egale.cpp:7:15: warning: unused variable 'n' [-Wunused-variable] long long n, a, b, nuebun=0,c, xx, xc, x, T,nrx=0, nrcreat=0, px=9, ax, bun=1; ^ egale.cpp:7:24: warning: unused variable 'nuebun' [-Wunused-variable] long long n, a, b, nuebun=0,c, xx, xc, x, T,nrx=0, nrcreat=0, px=9, ax, bun=1; ^ egale.cpp:7:49: warning: unused variable 'nrx' [-Wunused-variable] long long n, a, b, nuebun=0,c, xx, xc, x, T,nrx=0, nrcreat=0, px=9, ax, bun=1; ^ egale.cpp:7:56: warning: unused variable 'nrcreat' [-Wunused-variable] long long n, a, b, nuebun=0,c, xx, xc, x, T,nrx=0, nrcreat=0, px=9, ax, bun=1; ^ egale.cpp:7:67: warning: unused variable 'px' [-Wunused-variable] long long n, a, b, nuebun=0,c, xx, xc, x, T,nrx=0, nrcreat=0, px=9, ax, bun=1; ^ egale.cpp:7:73: warning: unused variable 'ax' [-Wunused-variable] long long n, a, b, nuebun=0,c, xx, xc, x, T,nrx=0, nrcreat=0, px=9, ax, bun=1; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema egale 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ă.