#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 | #52810771 | Utilizator | |
Fișier | bisect.cpp | Dimensiune | 179 B |
Data încărcării | 09 Octombrie 2024, 21:29 | Scor / rezultat | Eroare de compilare |
bisect.cpp: In function 'int main()': bisect.cpp:4:10: error: expected unqualified-id before 'int' std::int n; ^ bisect.cpp:4:10: error: expected ';' before 'int' bisect.cpp:5:5: error: 'cin' was not declared in this scope cin>> n; ^ bisect.cpp:5:5: note: suggested alternative: In file included from bisect.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ bisect.cpp:5:11: error: 'n' was not declared in this scope cin>> n; ^ bisect.cpp:7:9: error: 'cout' was not declared in this scope cout<< "bisect"; ^ bisect.cpp:7:9: note: suggested alternative: In file included from bisect.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ bisect.cpp:8:9: error: expected '}' before 'else' else cout<< "nebisect"; ^ bisect.cpp:8:14: error: 'cout' was not declared in this scope else cout<< "nebisect"; ^ bisect.cpp:8:14: note: suggested alternative: In file included from bisect.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ bisect.cpp: At global scope: bisect.cpp:10:1: error: expected declaration before '}' token } ^
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ă.