#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 | #49655987 | Utilizator | |
Fișier | hambar.cpp | Dimensiune | 1.07 KB |
Data încărcării | 11 Martie 2024, 13:15 | Scor / rezultat | Eroare de compilare |
hambar.cpp:11:11: error: conflicting declaration 'int a [1004]' int a[1004],n,am; ^ hambar.cpp:9:2: error: 'a' has a previous declaration as 'poz a [1001]' }a[1001]; ^ hambar.cpp: In function 'int ariemax(int, int, int, int)': hambar.cpp:16:16: error: expected primary-expression before ')' token ac=(i2-i1+!)*(j2-j1+1); ^ hambar.cpp:18:9: error: return-statement with no value, in function returning 'int' [-fpermissive] return ; ^ hambar.cpp:19:5: error: 'g' was not declared in this scope g=0; ^ hambar.cpp:20:9: error: 'i' was not declared in this scope for(i=1;i<=m;j++) ^ hambar.cpp:20:16: error: 'm' was not declared in this scope for(i=1;i<=m;j++) ^ hambar.cpp:20:18: error: 'j' was not declared in this scope for(i=1;i<=m;j++) ^ hambar.cpp:30:1: error: expected primary-expression before '}' token } ^ hambar.cpp:30:1: error: expected ';' before '}' token hambar.cpp: In function 'int main()': hambar.cpp:36:11: error: 'm' was not declared in this scope fin>>n>>m; ^ hambar.cpp:47:13: error: 'xax' was not declared in this scope xax=a[i].x; ^
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ă.