#2105
Moretime
La banca Moretime, moneda este Time-ul. Cei n clienţi ai băncii au conturi identificate prin valori naturale nenule, distincte două câte două. La deschiderea contului, fiecare client a depus un fond de siguranţă reprezentat printr-un număr natural nenul (cantitatea de Time aferentă contului, ce poate fi folosită de bancă, pentru urgenţe majore). Un client al băncii este considerat premium dacă numărul său de cont începe şi se termină cu aceeaşi cifră nenulă.
Olimpiada Municipala Informatica Iasi 2013
Problema | Moretime | Operații I/O |
moretime.in /moretime.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #51898181 | Utilizator | |
Fișier | moretime.cpp | Dimensiune | 1.29 KB |
Data încărcării | 05 Septembrie 2024, 13:51 | Scor / rezultat | Eroare de compilare |
moretime.cpp: In function 'int main()': moretime.cpp:25:5: error: reference to 'cin' is ambiguous cin >> n; ^ moretime.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("moretime.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from moretime.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ moretime.cpp:28:9: error: reference to 'cin' is ambiguous cin >> a[i].i >> a[i].val; ^ moretime.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("moretime.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from moretime.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ moretime.cpp:37:5: error: reference to 'cout' is ambiguous cout << cnt << '\n'; ^ moretime.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("moretime.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from moretime.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ moretime.cpp:43:13: error: reference to 'cout' is ambiguous cout << i << '\n'; ^ moretime.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("moretime.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from moretime.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ moretime.cpp:44:43: error: reference to 'cout' is ambiguous for(int j = 1 ; j <= i ; j++) cout << b[j].cont << ' '; ^ moretime.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("moretime.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from moretime.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ moretime.cpp:56:5: error: reference to 'cout' is ambiguous cout << jnou - inou << '\n'; ^ moretime.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("moretime.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from moretime.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ moretime.cpp:58:9: error: reference to 'cout' is ambiguous cout << b[i].cont << ' '; ^ moretime.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("moretime.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from moretime.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 Moretime 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ă.