#4062
Se dau n intervale, să se afișeze care dintre ele includ alte intervale și care sunt incluse într-un interval. Intervalul [a,b] este inclus în intervalul [c,d] dacă c ≤ a și b ≤ d (a < b, c < d).
cses
| Problema | SezonulLamaCrima | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.15 secunde | Limita memorie |
Total: 3 MB
/
Stivă 1 MB
|
| Id soluție | #64719600 | Utilizator | |
| Fișier | sezonullamacrima.cpp | Dimensiune | 1.94 KB |
| Data încărcării | 25 Mai 2026, 22:27 | Scor/rezultat | Eroare de compilare |
sezonullamacrima.cpp:4:2: error: expected unqualified-id before ‘{’ token 4 | { | ^ sezonullamacrima.cpp:7:3: error: ‘v’ does not name a type 7 | } v[MAXN],tmp[MAXN]; | ^ sezonullamacrima.cpp:8:17: error: size of array ‘include_alt’ is not an integral constant-expression 8 | int include_alt[MAXN]; | ^~~~ sezonullamacrima.cpp:9:15: error: size of array ‘inclus_in’ is not an integral constant-expression 9 | int inclus_in[MAXN]; | ^~~~ sezonullamacrima.cpp: In function ‘int main()’: sezonullamacrima.cpp:18:14: error: ‘v’ was not declared in this scope 18 | cin>>v[i].a>>v[i].b; | ^ sezonullamacrima.cpp:31:20: error: ‘v’ was not declared in this scope 31 | if(v[i].a!=v[j].a) | ^ sezonullamacrima.cpp:36:21: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’? 36 | tmp[k++]=v[i++]; | ^~~ | tm sezonullamacrima.cpp:36:30: error: ‘v’ was not declared in this scope 36 | tmp[k++]=v[i++]; | ^ sezonullamacrima.cpp:38:21: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’? 38 | tmp[k++]=v[j++]; | ^~~ | tm sezonullamacrima.cpp:38:30: error: ‘v’ was not declared in this scope 38 | tmp[k++]=v[j++]; | ^ sezonullamacrima.cpp:41:17: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’? 41 | tmp[k++]=v[i++]; | ^~~ | tm sezonullamacrima.cpp:41:26: error: ‘v’ was not declared in this scope 41 | tmp[k++]=v[i++]; | ^ sezonullamacrima.cpp:43:17: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’? 43 | tmp[k++]=v[j++]; | ^~~ | tm sezonullamacrima.cpp:43:26: error: ‘v’ was not declared in this scope 43 | tmp[k++]=v[j++]; | ^ sezonullamacrima.cpp:45:17: error: ‘v’ was not declared in this scope 45 | v[i]=tmp[i]; | ^ sezonullamacrima.cpp:45:22: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’? 45 | v[i]=tmp[i]; | ^~~ | tm sezonullamacrima.cpp:48:11: error: ‘v’ was not declared in this scope 48 | max_b=v[1].b; | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SezonulLamaCrima 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ă.