#1972
Hambar
Să se determine dreptunghiul de arie maximă ce conține numai 0
.
Problema | Hambar | Operații I/O |
![]() hambar.in /hambar.out
|
---|---|---|---|
Limita timp | 3 secunde | Limita memorie |
Total: 5 MB
/
Stivă 1 MB
|
Id soluție | #51095368 | Utilizator | |
Fișier | hambar.cpp | Dimensiune | 1.03 KB |
Data încărcării | 23 Mai 2024, 13:18 | Scor / rezultat | Eroare de compilare |
hambar.cpp:6:27: warning: 'typedef' was ignored in this declaration [enabled by default] typedef struct pom{si l,c;}; ^ hambar.cpp:3:12: error: duplicate 'short' #define si short int ^ hambar.cpp:10:35: note: in expansion of macro 'si' si cauta(si l1, si c1, si l2, si si k) ^ hambar.cpp:10:38: error: two or more data types in declaration of 'k' si cauta(si l1, si c1, si l2, si si k) ^ hambar.cpp: In function 'short int cauta(...)': hambar.cpp:13:20: error: 'l1' was not declared in this scope if(a[k].l>=l1 and a[k].l<=l2 and a[k].c>=c1 and a[k].c<=c2) return k; ^ hambar.cpp:13:35: error: 'l2' was not declared in this scope if(a[k].l>=l1 and a[k].l<=l2 and a[k].c>=c1 and a[k].c<=c2) return k; ^ hambar.cpp:13:50: error: 'c1' was not declared in this scope if(a[k].l>=l1 and a[k].l<=l2 and a[k].c>=c1 and a[k].c<=c2) return k; ^ hambar.cpp:13:65: error: 'c2' was not declared in this scope if(a[k].l>=l1 and a[k].l<=l2 and a[k].c>=c1 and a[k].c<=c2) return k; ^ hambar.cpp: At global scope: hambar.cpp:25:1: error: expected unqualified-id before '{' token { ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Hambar 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ă.