#496
Se dă un vector cu n numere naturale. Să se determine câte dintre elementele vectorului sunt prime cu ultimul element.
| Problema | Numarare4 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64844068 | Utilizator | |
| Fișier | numarare4.cpp | Dimensiune | 10.88 KB |
| Data încărcării | 06 Iunie 2026, 10:12 | Scor/rezultat | Eroare de compilare |
numarare4.cpp:44:2: error: stray ‘#’ in program 44 | }#include <iostream> | ^ numarare4.cpp:87:2: error: stray ‘#’ in program 87 | }#include <iostream> | ^ numarare4.cpp:130:2: error: stray ‘#’ in program 130 | }#include <iostream> | ^ numarare4.cpp:173:2: error: stray ‘#’ in program 173 | }#include <iostream> | ^ numarare4.cpp:216:2: error: stray ‘#’ in program 216 | }#include <iostream> | ^ numarare4.cpp:259:2: error: stray ‘#’ in program 259 | }#include <iostream> | ^ numarare4.cpp:302:2: error: stray ‘#’ in program 302 | }#include <iostream> | ^ numarare4.cpp:345:2: error: stray ‘#’ in program 345 | }#include <iostream> | ^ numarare4.cpp:388:2: error: stray ‘#’ in program 388 | }#include <iostream> | ^ numarare4.cpp:431:2: error: stray ‘#’ in program 431 | }#include <iostream> | ^ numarare4.cpp:474:2: error: stray ‘#’ in program 474 | }#include <iostream> | ^ numarare4.cpp:44:3: error: ‘include’ does not name a type 44 | }#include <iostream> | ^~~~~~~ numarare4.cpp:48:5: error: redefinition of ‘int main()’ 48 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:87:3: error: ‘include’ does not name a type 87 | }#include <iostream> | ^~~~~~~ numarare4.cpp:91:5: error: redefinition of ‘int main()’ 91 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:130:3: error: ‘include’ does not name a type 130 | }#include <iostream> | ^~~~~~~ numarare4.cpp:134:5: error: redefinition of ‘int main()’ 134 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:173:3: error: ‘include’ does not name a type 173 | }#include <iostream> | ^~~~~~~ numarare4.cpp:177:5: error: redefinition of ‘int main()’ 177 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:216:3: error: ‘include’ does not name a type 216 | }#include <iostream> | ^~~~~~~ numarare4.cpp:220:5: error: redefinition of ‘int main()’ 220 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:259:3: error: ‘include’ does not name a type 259 | }#include <iostream> | ^~~~~~~ numarare4.cpp:263:5: error: redefinition of ‘int main()’ 263 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:302:3: error: ‘include’ does not name a type 302 | }#include <iostream> | ^~~~~~~ numarare4.cpp:306:5: error: redefinition of ‘int main()’ 306 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:345:3: error: ‘include’ does not name a type 345 | }#include <iostream> | ^~~~~~~ numarare4.cpp:349:5: error: redefinition of ‘int main()’ 349 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:388:3: error: ‘include’ does not name a type 388 | }#include <iostream> | ^~~~~~~ numarare4.cpp:392:5: error: redefinition of ‘int main()’ 392 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:431:3: error: ‘include’ does not name a type 431 | }#include <iostream> | ^~~~~~~ numarare4.cpp:435:5: error: redefinition of ‘int main()’ 435 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~ numarare4.cpp:474:3: error: ‘include’ does not name a type 474 | }#include <iostream> | ^~~~~~~ numarare4.cpp:478:5: error: redefinition of ‘int main()’ 478 | int main() { | ^~~~ numarare4.cpp:5:5: note: ‘int main()’ previously defined here 5 | int main() { | ^~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numarare4 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ă.