#270
Unice1
Se dau n
numere întregi. Determinaţi câte dintre numerele date apar o singură dată.
Problema | Unice1 | Operații I/O |
unice1.in /unice1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #23290858 | Utilizator | |
Fișier | unice1.cpp | Dimensiune | 592 B |
Data încărcării | 10 Iunie 2020, 18:57 | Scor / rezultat | Eroare de compilare |
unice1.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ unice1.cpp:2:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ unice1.cpp:3:1: error: stray '\302' in program using namespace std; ^ unice1.cpp:3:1: error: stray '\240' in program unice1.cpp:3:1: error: stray '\302' in program unice1.cpp:3:1: error: stray '\240' in program unice1.cpp:5:1: error: stray '\302' in program int este_in_sir(int v[],int k,int x){ ^ unice1.cpp:5:1: error: stray '\240' in program unice1.cpp:5:1: error: stray '\302' in program unice1.cpp:5:1: error: stray '\240' in program unice1.cpp:5:1: error: stray '\302' in program unice1.cpp:5:1: error: stray '\240' in program unice1.cpp:5:1: error: stray '\302' in program unice1.cpp:5:1: error: stray '\240' in program unice1.cpp:7:1: error: stray '\302' in program int i,este_in_sir=0; ^ unice1.cpp:7:1: error: stray '\240' in program unice1.cpp:9:1: error: stray '\302' in program return 0; ^ unice1.cpp:9:1: error: stray '\240' in program unice1.cpp:16:1: error: stray '\302' in program else if(v[i]==x&&este_in_sir==0){ ^ unice1.cpp:16:1: error: stray '\240' in program unice1.cpp:20:1: error: stray '\302' in program return este_in_sir; ^ unice1.cpp:20:1: error: stray '\240' in program unice1.cpp:22:1: error: stray '\302' in program int main(){ ^ unice1.cpp:22:1: error: stray '\240' in program unice1.cpp:23:1: error: stray '\302' in program ifstream ifu("unice1.in"); ^ unice1.cpp:23:1: error: stray '\240' in program unice1.cpp:24:1: error: stray '\302' in program ofstream ofu("unice1.out"); ^ unice1.cpp:24:1: error: stray '\240' in program unice1.cpp:25:1: error: stray '\302' in program int n,v[1000],x,k=1,nr=0; ^ unice1.cpp:25:1: error: stray '\240' in program unice1.cpp:33:1: error: stray '\302' in program else if(este_in_sir(v,k,x)==1){ ^ unice1.cpp:33:1: error: stray '\240' in program unice1.cpp:40:1: error: stray '\302' in program return 0; ^ unice1.cpp:40:1: error: stray '\240' in program unice1.cpp: In function 'int main()': unice1.cpp:23:1: error: 'ifstream' was not declared in this scope ifstream ifu("unice1.in"); ^ unice1.cpp:23:11: error: expected ';' before 'ifu' ifstream ifu("unice1.in"); ^ unice1.cpp:24:1: error: 'ofstream' was not declared in this scope ofstream ofu("unice1.out"); ^ unice1.cpp:24:11: error: expected ';' before 'ofu' ofstream ofu("unice1.out"); ^ unice1.cpp:26:1: error: 'ifu' was not declared in this scope ifu>>n; ^ unice1.cpp:39:1: error: 'ofu' was not declared in this scope ofu<<nr<<endl; ^ unice1.cpp:39:10: error: 'endl' was not declared in this scope ofu<<nr<<endl; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Unice1 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ă.