#177
bisect
Să se scrie un program care verifică dacă un an calendaristic precizat este bisect.
Problema | bisect | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51459648 | Utilizator | |
Fișier | bisect.cpp | Dimensiune | 199 B |
Data încărcării | 20 Iunie 2024, 18:00 | Scor / rezultat | Eroare de compilare |
bisect.cpp:2:7: error: expected nested-name-specifier before 'namesace' using namesace std; ^ bisect.cpp:2:7: error: 'namesace' has not been declared bisect.cpp:2:16: error: expected ';' before 'std' using namesace std; ^ bisect.cpp:2:16: error: 'std' does not name a type bisect.cpp: In function 'int main()': bisect.cpp:6:5: error: 'cin' was not declared in this scope cin>>n; ^ bisect.cpp:6: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:7:29: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if((n%4==0&&n%100!=0)||n&400==0) ^ bisect.cpp:8:9: error: 'cout' was not declared in this scope cout<<"bisect"; ^ bisect.cpp:8: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:9:14: error: 'cout' was not declared in this scope else cout<<"nebisect"; ^ bisect.cpp:9: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 ^
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ă.