#163
stergere
Să se șteargă dintr-un vector toate elementele care sunt numere prime.
Problema | stergere | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54193880 | Utilizator | |
Fișier | stergere.cpp | Dimensiune | 609 B |
Data încărcării | 21 Noiembrie 2024, 19:22 | Scor / rezultat | Eroare de compilare |
stergere.cpp:24:5: error: stray '\302' in program else fout << "NU"; ^ stergere.cpp:24:5: error: stray '\240' in program stergere.cpp:24:5: error: stray '\302' in program stergere.cpp:24:5: error: stray '\240' in program stergere.cpp:24:5: error: stray '\302' in program stergere.cpp:24:5: error: stray '\240' in program stergere.cpp: In function 'int main()': stergere.cpp:8:5: error: 'fin' was not declared in this scope fin >> n; ^ stergere.cpp:12:24: error: 'max1' was not declared in this scope if(x % 2 == 1) max1 = max(max1 , x); ^ stergere.cpp:13:14: error: 'max2' was not declared in this scope else max2 = max(max2 , x); ^ stergere.cpp:18:24: error: 'min1' was not declared in this scope if(x % 2 == 1) min1 = min(min1 , x); ^ stergere.cpp:19:14: error: 'min2' was not declared in this scope else min2 = min(min2 , x); ^ stergere.cpp:21:8: error: 'max1' was not declared in this scope if(max1 == 0 && min1 == 2000000000) fout << "DA"; ^ stergere.cpp:21:21: error: 'min1' was not declared in this scope if(max1 == 0 && min1 == 2000000000) fout << "DA"; ^ stergere.cpp:21:41: error: 'fout' was not declared in this scope if(max1 == 0 && min1 == 2000000000) fout << "DA"; ^ stergere.cpp:22:13: error: 'max2' was not declared in this scope else if(max2 == 0 && min2 == 2000000000) fout << "DA"; ^ stergere.cpp:22:26: error: 'min2' was not declared in this scope else if(max2 == 0 && min2 == 2000000000) fout << "DA"; ^ stergere.cpp:22:46: error: 'fout' was not declared in this scope else if(max2 == 0 && min2 == 2000000000) fout << "DA"; ^ stergere.cpp:23:41: error: 'fout' was not declared in this scope else if(max1 < min2 && max2 < min1) fout << "DA"; ^ stergere.cpp:24:11: error: 'fout' was not declared in this scope else fout << "NU"; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema stergere 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ă.