#177
bisect
Să se scrie un program care verifică dacă un an calendaristic precizat este bisect.
Problema | bisect | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54230078 | Utilizator | |
Fișier | bisect.cpp | Dimensiune | 299 B |
Data încărcării | 22 Noiembrie 2024, 18:49 | Scor / rezultat | Eroare de compilare |
bisect.cpp: In function 'int main()': bisect.cpp:11:5: error: reference to 'cin' is ambiguous cin >> n; ^ bisect.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("9lan.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from bisect.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ bisect.cpp:13:9: error: reference to 'cout' is ambiguous cout << 1; ^ bisect.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("9lan.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from bisect.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ bisect.cpp:17:9: error: reference to 'cout' is ambiguous cout << 1; ^ bisect.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("9lan.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from bisect.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ bisect.cpp:19:9: error: reference to 'cout' is ambiguous cout << 9; ^ bisect.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("9lan.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from bisect.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 bisect 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ă.