#563
Fast-food-ul de la colțul străzii are n clienți. Pentru fiecare client se cunoaște momentul în care intră în fast-food și momentul în care iese, ambele fiind exprimate în minute, numărate de la începutul perioadei de funcționare. Gigel, patronul acestui fast-food, dorește să afle care este numărul maxim de clienți aflați simultan în restaurant.
| Problema | Fast-food1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64945033 | Utilizator | |
| Fișier | fast-food1.cpp | Dimensiune | 867 B |
| Data încărcării | 20 Iunie 2026, 09:34 | Scor/rezultat | Eroare de compilare |
fast-food1.cpp:10:16: error: stray ‘#’ in program 10 | int nmax=0;#include <bits/stdc++.h> | ^ fast-food1.cpp:11: warning: "N" redefined 11 | #define N 10005 | fast-food1.cpp:2: note: this is the location of the previous definition 2 | #define N 1005 | fast-food1.cpp: In function ‘int main()’: fast-food1.cpp:10:17: error: ‘include’ was not declared in this scope 10 | int nmax=0;#include <bits/stdc++.h> | ^~~~~~~ fast-food1.cpp:10:26: error: ‘bits’ was not declared in this scope 10 | int nmax=0;#include <bits/stdc++.h> | ^~~~ fast-food1.cpp:10:31: error: ‘stdc’ was not declared in this scope; did you mean ‘std’? 10 | int nmax=0;#include <bits/stdc++.h> | ^~~~ | std fast-food1.cpp:12:1: error: expected primary-expression before ‘using’ 12 | using namespace std; | ^~~~~ fast-food1.cpp:16:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 16 | int main() | ^~ fast-food1.cpp:16:9: note: remove parentheses to default-initialize a variable 16 | int main() | ^~ | -- fast-food1.cpp:16:9: note: or replace parentheses with braces to value-initialize a variable fast-food1.cpp:17:1: error: a function-definition is not allowed here before ‘{’ token 17 | { | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Fast-food1 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ă.