#2275
MinimDoua
Se dau n
numere naturale. Determinați cele mai mici două numere dintre cele introduse care au ultimele două cifre egale.
Problema | MinimDoua | Operații I/O |
minimdoua.in /minimdoua.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53998468 | Utilizator | |
Fișier | minimdoua.cpp | Dimensiune | 630 B |
Data încărcării | 17 Noiembrie 2024, 13:56 | Scor / rezultat | Eroare de compilare |
minimdoua.cpp:4:13: error: variable 'std::ifstream cin' has initializer but incomplete type ifstream cin("minimdoua.in"); ^ minimdoua.cpp:5:14: error: variable 'std::ofstream cout' has initializer but incomplete type ofstream cout("minimdoua.out"); ^ minimdoua.cpp: In function 'int main()': minimdoua.cpp:9:5: error: reference to 'cin' is ambiguous cin>>n; ^ minimdoua.cpp:4:10: note: candidates are: <typeprefixerror>cin ifstream cin("minimdoua.in"); ^ In file included from minimdoua.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ minimdoua.cpp:12:9: error: reference to 'cin' is ambiguous cin>>x; ^ minimdoua.cpp:4:10: note: candidates are: <typeprefixerror>cin ifstream cin("minimdoua.in"); ^ In file included from minimdoua.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ minimdoua.cpp:28:9: error: reference to 'cout' is ambiguous cout<<m1<<" "<<m2; ^ minimdoua.cpp:5:10: note: candidates are: <typeprefixerror>cout ofstream cout("minimdoua.out"); ^ In file included from minimdoua.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ minimdoua.cpp:32:9: error: reference to 'cout' is ambiguous cout<<"numere insuficiente"; ^ minimdoua.cpp:5:10: note: candidates are: <typeprefixerror>cout ofstream cout("minimdoua.out"); ^ In file included from minimdoua.cpp:1:0: /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 MinimDoua 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ă.