#1972
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 | #57633066 | Utilizator | |
Fișier | hambar.cpp | Dimensiune | 2.14 KB |
Data încărcării | 08 Aprilie 2025, 13:38 | Scor / rezultat | Eroare de compilare |
hambar.cpp:49:2: error: stray '#' in program }#include <iostream> ^ hambar.cpp:6:27: warning: 'typedef' was ignored in this declaration [enabled by default] typedef struct pom{si l,c;}; ^ hambar.cpp:49:3: error: 'include' does not name a type }#include <iostream> ^ hambar.cpp:54:16: error: redefinition of 'struct pom' typedef struct pom{si l,c;}; ^ hambar.cpp:6:16: error: previous definition of 'struct pom' typedef struct pom{si l,c;}; ^ hambar.cpp:54:27: warning: 'typedef' was ignored in this declaration [enabled by default] typedef struct pom{si l,c;}; ^ hambar.cpp:55:11: error: redefinition of 'pom a [1002]' pom a[1002]; ^ hambar.cpp:7:5: error: 'pom a [1002]' previously declared here pom a[1002]; ^ hambar.cpp:56:4: error: redefinition of 'short int n' si n,m,k=1,i; ^ hambar.cpp:8:4: error: 'short int n' previously declared here si n,m,k=1,i; ^ hambar.cpp:56:6: error: redefinition of 'short int m' si n,m,k=1,i; ^ hambar.cpp:8:6: error: 'short int m' previously declared here si n,m,k=1,i; ^ hambar.cpp:56:8: error: redefinition of 'short int k' si n,m,k=1,i; ^ hambar.cpp:8:8: error: 'short int k' previously defined here si n,m,k=1,i; ^ hambar.cpp:56:12: error: redefinition of 'short int i' si n,m,k=1,i; ^ hambar.cpp:8:12: error: 'short int i' previously declared here si n,m,k=1,i; ^ hambar.cpp:57:5: error: redefinition of 'int smax' int smax=0; ^ hambar.cpp:9:5: error: 'int smax' previously defined here int smax=0; ^ hambar.cpp: In function 'short int cauta(short int, short int, short int, short int, short int)': hambar.cpp:58:4: error: redefinition of 'short int cauta(short int, short int, short int, short int, short int)' si cauta(si l1, si c1, si l2, si c2, si k) ^ hambar.cpp:10:4: error: 'short int cauta(short int, short int, short int, short int, short int)' previously defined here si cauta(si l1, si c1, si l2, si c2, si k) ^ hambar.cpp: In function 'void arie(short int, short int, short int, short int)': hambar.cpp:66:6: error: redefinition of 'void arie(short int, short int, short int, short int)' void arie(si l1, si c1, si l2, si c2) ^ hambar.cpp:18:6: error: 'void arie(short int, short int, short int, short int)' previously defined here void arie(si l1, si c1, si l2, si c2) ^ hambar.cpp: At global scope: hambar.cpp:71:5: error: redefinition of 'int z' int z; ^ hambar.cpp:23:5: error: 'int z' previously declared here int z; ^ hambar.cpp: In function 'void div(short int, short int, short int, short int, short int)': hambar.cpp:72:6: error: redefinition of 'void div(short int, short int, short int, short int, short int)' void div(si l1, si c1, si l2, si c2, si p) ^ hambar.cpp:24:6: error: 'void div(short int, short int, short int, short int, short int)' previously defined here void div(si l1, si c1, si l2, si c2, si p) ^ hambar.cpp: In function 'int main()': hambar.cpp:88:5: error: redefinition of 'int main()' int main() ^ hambar.cpp:40:5: error: 'int main()' previously defined here int main() ^
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ă.