#587
Într-un mall sunt n centre comerciale, numerotate de la 1 la n, unite între ele prin coridoare unidirecționale. Să se determine, dacă există, un centru comercial în care se poate ajunge din oricare altul.
| Problema | Mall | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64645521 | Utilizator | |
| Fișier | mall.cpp | Dimensiune | 1.60 KB |
| Data încărcării | 20 Mai 2026, 10:54 | Scor/rezultat | Eroare de compilare |
mall.cpp: In function ‘void verificare()’: mall.cpp:32:1: error: a function-definition is not allowed here before ‘{’ token 32 | { cin>>i>>j>>k; | ^ mall.cpp:42:1: error: a function-definition is not allowed here before ‘{’ token 42 | { | ^ mall.cpp:51:1: error: a function-definition is not allowed here before ‘{’ token 51 | { int ok=1; | ^ mall.cpp:60:5: error: a function-definition is not allowed here before ‘{’ token 60 | { | ^ mall.cpp:70:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 70 | int main() | ^~ mall.cpp:70:9: note: remove parentheses to default-initialize a variable 70 | int main() | ^~ | -- mall.cpp:70:9: note: or replace parentheses with braces to value-initialize a variable mall.cpp:71:1: error: a function-definition is not allowed here before ‘{’ token 71 | { RW( ); | ^ mall.cpp:28:9: warning: unused variable ‘k’ [-Wunused-variable] 28 | int i,j,k,a[101][101],m,n,x,y; | ^ mall.cpp:28:23: warning: unused variable ‘m’ [-Wunused-variable] 28 | int i,j,k,a[101][101],m,n,x,y; | ^ mall.cpp:28:25: warning: unused variable ‘n’ [-Wunused-variable] 28 | int i,j,k,a[101][101],m,n,x,y; | ^ mall.cpp:28:27: warning: unused variable ‘x’ [-Wunused-variable] 28 | int i,j,k,a[101][101],m,n,x,y; | ^ mall.cpp:28:29: warning: unused variable ‘y’ [-Wunused-variable] 28 | int i,j,k,a[101][101],m,n,x,y; | ^ mall.cpp: In function ‘int afisare()’: mall.cpp:92:1: warning: no return statement in function returning non-void [-Wreturn-type] 92 | } | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Mall 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ă.