#267
Unice
Se dau n
numere numere naturale cu cel mult două cifre fiecare. Să se determine acele numere care apar o singură dată.
Variante Bacalaureat 2009
Problema | Unice | Operații I/O |
![]() unice.in /unice.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16596030 | Utilizator | |
Fișier | unice.cpp | Dimensiune | 370 B |
Data încărcării | 09 Septembrie 2019, 18:32 | Scor / rezultat | Eroare de compilare |
unice.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ unice.cpp:2:1: error: stray '\302' in program using namespace std; ^ unice.cpp:2:1: error: stray '\240' in program unice.cpp:2:1: error: stray '\302' in program unice.cpp:2:1: error: stray '\240' in program unice.cpp:3:1: error: stray '\302' in program int v[101],nr,i,n,x,k; ^ unice.cpp:3:1: error: stray '\240' in program unice.cpp:4:1: error: stray '\302' in program int main() ^ unice.cpp:4:1: error: stray '\240' in program unice.cpp:6:1: error: stray '\302' in program ifstream f("unice.in"); ^ unice.cpp:6:1: error: stray '\240' in program unice.cpp:6:1: error: stray '\302' in program unice.cpp:6:1: error: stray '\240' in program unice.cpp:6:1: error: stray '\302' in program unice.cpp:6:1: error: stray '\240' in program unice.cpp:6:1: error: stray '\302' in program unice.cpp:6:1: error: stray '\240' in program unice.cpp:7:1: error: stray '\302' in program ofstream g("unice.out"); ^ unice.cpp:7:1: error: stray '\240' in program unice.cpp:7:1: error: stray '\302' in program unice.cpp:7:1: error: stray '\240' in program unice.cpp:7:1: error: stray '\302' in program unice.cpp:7:1: error: stray '\240' in program unice.cpp:7:1: error: stray '\302' in program unice.cpp:7:1: error: stray '\240' in program unice.cpp:8:1: error: stray '\302' in program f>>n; ^ unice.cpp:8:1: error: stray '\240' in program unice.cpp:8:1: error: stray '\302' in program unice.cpp:8:1: error: stray '\240' in program unice.cpp:8:1: error: stray '\302' in program unice.cpp:8:1: error: stray '\240' in program unice.cpp:9:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ unice.cpp:9:1: error: stray '\240' in program unice.cpp:9:1: error: stray '\302' in program unice.cpp:9:1: error: stray '\240' in program unice.cpp:9:1: error: stray '\302' in program unice.cpp:9:1: error: stray '\240' in program unice.cpp:10:1: error: stray '\302' in program { ^ unice.cpp:10:1: error: stray '\240' in program unice.cpp:10:1: error: stray '\302' in program unice.cpp:10:1: error: stray '\240' in program unice.cpp:10:1: error: stray '\302' in program unice.cpp:10:1: error: stray '\240' in program unice.cpp:11:1: error: stray '\302' in program f>>x; ^ unice.cpp:11:1: error: stray '\240' in program unice.cpp:11:1: error: stray '\302' in program unice.cpp:11:1: error: stray '\240' in program unice.cpp:11:1: error: stray '\302' in program unice.cpp:11:1: error: stray '\240' in program unice.cpp:11:1: error: stray '\302' in program unice.cpp:11:1: error: stray '\240' in program unice.cpp:11:1: error: stray '\302' in program unice.cpp:11:1: error: stray '\240' in program unice.cpp:11:1: error: stray '\302' in program unice.cpp:11:1: error: stray '\240' in program unice.cpp:11:1: error: stray '\302' in program unice.cpp:11:1: error: stray '\240' in program unice.cpp:12:1: error: stray '\302' in program v[x]++; ^ unice.cpp:12:1: error: stray '\240' in program unice.cpp:12:1: error: stray '\302' in program unice.cpp:12:1: error: stray '\240' in program unice.cpp:12:1: error: stray '\302' in program unice.cpp:12:1: error: stray '\240' in program unice.cpp:12:1: error: stray '\302' in program unice.cpp:12:1: error: stray '\240' in program unice.cpp:12:1: error: stray '\302' in program unice.cpp:12:1: error: stray '\240' in program unice.cpp:12:1: error: stray '\302' in program unice.cpp:12:1: error: stray '\240' in program unice.cpp:12:1: error: stray '\302' in program unice.cpp:12:1: error: stray '\240' in program unice.cpp:13:1: error: stray '\302' in program } ^ unice.cpp:13:1: error: stray '\240' in program unice.cpp:13:1: error: stray '\302' in program unice.cpp:13:1: error: stray '\240' in program unice.cpp:13:1: error: stray '\302' in program unice.cpp:13:1: error: stray '\240' in program unice.cpp:14:1: error: stray '\302' in program for(i=0;i<=99;i++) ^ unice.cpp:14:1: error: stray '\240' in program unice.cpp:14:1: error: stray '\302' in program unice.cpp:14:1: error: stray '\240' in program unice.cpp:14:1: error: stray '\302' in program unice.cpp:14:1: error: stray '\240' in program unice.cpp:15:1: error: stray '\302' in program if(v[i]==1) g<<i<<" "; ^ unice.cpp:15:1: error: stray '\240' in program unice.cpp:15:1: error: stray '\302' in program unice.cpp:15:1: error: stray '\240' in program unice.cpp:15:1: error: stray '\302' in program unice.cpp:15:1: error: stray '\240' in program unice.cpp:15:1: error: stray '\302' in program unice.cpp:15:1: error: stray '\240' in program unice.cpp:15:1: error: stray '\302' in program unice.cpp:15:1: error: stray '\240' in program unice.cpp:16:1: error: stray '\302' in program f.close(); ^ unice.cpp:16:1: error: stray '\240' in program unice.cpp:16:1: error: stray '\302' in program unice.cpp:16:1: error: stray '\240' in program unice.cpp:16:1: error: stray '\302' in program unice.cpp:16:1: error: stray '\240' in program unice.cpp:17:1: error: stray '\302' in program g.close(); ^ unice.cpp:17:1: error: stray '\240' in program unice.cpp:17:1: error: stray '\302' in program unice.cpp:17:1: error: stray '\240' in program unice.cpp:17:1: error: stray '\302' in program unice.cpp:17:1: error: stray '\240' in program unice.cpp:18:1: error: stray '\302' in program return 0; ^ unice.cpp:18:1: error: stray '\240' in program unice.cpp:18:1: error: stray '\302' in program unice.cpp:18:1: error: stray '\240' in program unice.cpp:18:1: error: stray '\302' in program unice.cpp:18:1: error: stray '\240' in program unice.cpp:18:1: error: stray '\302' in program unice.cpp:18:1: error: stray '\240' in program unice.cpp: In function 'int main()': unice.cpp:6:7: error: 'ifstream' was not declared in this scope ifstream f("unice.in"); ^ unice.cpp:6:17: error: expected ';' before 'f' ifstream f("unice.in"); ^ unice.cpp:7:7: error: 'ofstream' was not declared in this scope ofstream g("unice.out"); ^ unice.cpp:7:17: error: expected ';' before 'g' ofstream g("unice.out"); ^ unice.cpp:8:7: error: 'f' was not declared in this scope f>>n; ^ unice.cpp:15:22: error: 'g' was not declared in this scope if(v[i]==1) g<<i<<" "; ^ unice.cpp:17:7: error: 'g' was not declared in this scope g.close(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Unice 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ă.