#505
Identice
Se dau doi vectori cu câte n
elemente, numere naturale. Verificați dacă cei doi vectori conțin exact aceleași elemente.
Problema | Identice | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #22128722 | Utilizator | |
Fișier | identice.cpp | Dimensiune | 505 B |
Data încărcării | 26 Martie 2020, 14:13 | Scor / rezultat | Eroare de compilare |
identice.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ identice.cpp:2:1: error: stray '\302' in program using namespace std; ^ identice.cpp:2:1: error: stray '\240' in program identice.cpp:2:1: error: stray '\302' in program identice.cpp:2:1: error: stray '\240' in program identice.cpp:3:1: error: stray '\302' in program int main(){ ^ identice.cpp:3:1: error: stray '\240' in program identice.cpp:4:1: error: stray '\302' in program int n,i,j,k,b,c=0,ok=1; ^ identice.cpp:4:1: error: stray '\240' in program identice.cpp:4:1: error: stray '\302' in program identice.cpp:4:1: error: stray '\240' in program identice.cpp:4:1: error: stray '\302' in program identice.cpp:4:1: error: stray '\240' in program identice.cpp:5:1: error: stray '\302' in program cin >> n; ^ identice.cpp:5:1: error: stray '\240' in program identice.cpp:5:1: error: stray '\302' in program identice.cpp:5:1: error: stray '\240' in program identice.cpp:5:1: error: stray '\302' in program identice.cpp:5:1: error: stray '\240' in program identice.cpp:5:1: error: stray '\302' in program identice.cpp:5:1: error: stray '\240' in program identice.cpp:6:1: error: stray '\302' in program int v[n],a[n]; ^ identice.cpp:6:1: error: stray '\240' in program identice.cpp:6:1: error: stray '\302' in program identice.cpp:6:1: error: stray '\240' in program identice.cpp:6:1: error: stray '\302' in program identice.cpp:6:1: error: stray '\240' in program identice.cpp:7:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ identice.cpp:7:1: error: stray '\240' in program identice.cpp:7:1: error: stray '\302' in program identice.cpp:7:1: error: stray '\240' in program identice.cpp:8:1: error: stray '\302' in program cin >> v[i]; ^ identice.cpp:8:1: error: stray '\240' in program identice.cpp:8:1: error: stray '\302' in program identice.cpp:8:1: error: stray '\240' in program identice.cpp:8:1: error: stray '\302' in program identice.cpp:8:1: error: stray '\240' in program identice.cpp:8:1: error: stray '\302' in program identice.cpp:8:1: error: stray '\240' in program identice.cpp:8:1: error: stray '\302' in program identice.cpp:8:1: error: stray '\240' in program identice.cpp:8:1: error: stray '\302' in program identice.cpp:8:1: error: stray '\240' in program identice.cpp:9:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ identice.cpp:9:1: error: stray '\240' in program identice.cpp:9:1: error: stray '\302' in program identice.cpp:9:1: error: stray '\240' in program identice.cpp:10:1: error: stray '\302' in program cin >> a[i]; ^ identice.cpp:10:1: error: stray '\240' in program identice.cpp:10:1: error: stray '\302' in program identice.cpp:10:1: error: stray '\240' in program identice.cpp:10:1: error: stray '\302' in program identice.cpp:10:1: error: stray '\240' in program identice.cpp:10:1: error: stray '\302' in program identice.cpp:10:1: error: stray '\240' in program identice.cpp:10:1: error: stray '\302' in program identice.cpp:10:1: error: stray '\240' in program identice.cpp:10:1: error: stray '\302' in program identice.cpp:10:1: error: stray '\240' in program identice.cpp:11:1: error: stray '\302' in program for(i=1;i<=n;i++){ ^ identice.cpp:11:1: error: stray '\240' in program identice.cpp:11:1: error: stray '\302' in program identice.cpp:11:1: error: stray '\240' in program identice.cpp:12:1: error: stray '\302' in program b=v[i]; ^ identice.cpp:12:1: error: stray '\240' in program identice.cpp:12:1: error: stray '\302' in program identice.cpp:12:1: error: stray '\240' in program identice.cpp:12:1: error: stray '\302' in program identice.cpp:12:1: error: stray '\240' in program identice.cpp:12:1: error: stray '\302' in program identice.cpp:12:1: error: stray '\240' in program identice.cpp:13:1: error: stray '\302' in program k=0; ^ identice.cpp:13:1: error: stray '\240' in program identice.cpp:13:1: error: stray '\302' in program identice.cpp:13:1: error: stray '\240' in program identice.cpp:13:1: error: stray '\302' in program identice.cpp:13:1: error: stray '\240' in program identice.cpp:13:1: error: stray '\302' in program identice.cpp:13:1: error: stray '\240' in program identice.cpp:14:1: error: stray '\302' in program c=0; ^ identice.cpp:14:1: error: stray '\240' in program identice.cpp:14:1: error: stray '\302' in program identice.cpp:14:1: error: stray '\240' in program identice.cpp:14:1: error: stray '\302' in program identice.cpp:14:1: error: stray '\240' in program identice.cpp:14:1: error: stray '\302' in program identice.cpp:14:1: error: stray '\240' in program identice.cpp:15:1: error: stray '\302' in program for(j=1;j<=n;j++){ ^ identice.cpp:15:1: error: stray '\240' in program identice.cpp:15:1: error: stray '\302' in program identice.cpp:15:1: error: stray '\240' in program identice.cpp:15:1: error: stray '\302' in program identice.cpp:15:1: error: stray '\240' in program identice.cpp:15:1: error: stray '\302' in program identice.cpp:15:1: error: stray '\240' in program identice.cpp:16:1: error: stray '\302' in program if(b==a[j]) k++; ^ identice.cpp:16:1: error: stray '\240' in program identice.cpp:16:1: error: stray '\302' in program identice.cpp:16:1: error: stray '\240' in program identice.cpp:16:1: error: stray '\302' in program identice.cpp:16:1: error: stray '\240' in program identice.cpp:16:1: error: stray '\302' in program identice.cpp:16:1: error: stray '\240' in program identice.cpp:16:1: error: stray '\302' in program identice.cpp:16:1: error: stray '\240' in program identice.cpp:16:1: error: stray '\302' in program identice.cpp:16:1: error: stray '\240' in program identice.cpp:16:1: error: stray '\302' in program identice.cpp:16:1: error: stray '\240' in program identice.cpp:17:1: error: stray '\302' in program if(b==v[j]) c++; ^ identice.cpp:17:1: error: stray '\240' in program identice.cpp:17:1: error: stray '\302' in program identice.cpp:17:1: error: stray '\240' in program identice.cpp:17:1: error: stray '\302' in program identice.cpp:17:1: error: stray '\240' in program identice.cpp:17:1: error: stray '\302' in program identice.cpp:17:1: error: stray '\240' in program identice.cpp:17:1: error: stray '\302' in program identice.cpp:17:1: error: stray '\240' in program identice.cpp:17:1: error: stray '\302' in program identice.cpp:17:1: error: stray '\240' in program identice.cpp:17:1: error: stray '\302' in program identice.cpp:17:1: error: stray '\240' in program identice.cpp:18:1: error: stray '\302' in program } ^ identice.cpp:18:1: error: stray '\240' in program identice.cpp:18:1: error: stray '\302' in program identice.cpp:18:1: error: stray '\240' in program identice.cpp:18:1: error: stray '\302' in program identice.cpp:18:1: error: stray '\240' in program identice.cpp:18:1: error: stray '\302' in program identice.cpp:18:1: error: stray '\240' in program identice.cpp:19:1: error: stray '\302' in program if(c!=k) ok=0; ^ identice.cpp:19:1: error: stray '\240' in program identice.cpp:19:1: error: stray '\302' in program identice.cpp:19:1: error: stray '\240' in program identice.cpp:19:1: error: stray '\302' in program identice.cpp:19:1: error: stray '\240' in program identice.cpp:19:1: error: stray '\302' in program identice.cpp:19:1: error: stray '\240' in program identice.cpp:19:1: error: stray '\302' in program identice.cpp:19:1: error: stray '\240' in program identice.cpp:20:1: error: stray '\302' in program } ^ identice.cpp:20:1: error: stray '\240' in program identice.cpp:20:1: error: stray '\302' in program identice.cpp:20:1: error: stray '\240' in program identice.cpp:21:1: error: stray '\302' in program if(ok) ^ identice.cpp:21:1: error: stray '\240' in program identice.cpp:21:1: error: stray '\302' in program identice.cpp:21:1: error: stray '\240' in program identice.cpp:22:1: error: stray '\302' in program cout<<"DA"; ^ identice.cpp:22:1: error: stray '\240' in program identice.cpp:22:1: error: stray '\302' in program identice.cpp:22:1: error: stray '\240' in program identice.cpp:22:1: error: stray '\302' in program identice.cpp:22:1: error: stray '\240' in program identice.cpp:22:1: error: stray '\302' in program identice.cpp:22:1: error: stray '\240' in program identice.cpp:23:1: error: stray '\302' in program else ^ identice.cpp:23:1: error: stray '\240' in program identice.cpp:23:1: error: stray '\302' in program identice.cpp:23:1: error: stray '\240' in program identice.cpp:24:1: error: stray '\302' in program cout<<"NU"; ^ identice.cpp:24:1: error: stray '\240' in program identice.cpp:24:1: error: stray '\302' in program identice.cpp:24:1: error: stray '\240' in program identice.cpp:24:1: error: stray '\302' in program identice.cpp:24:1: error: stray '\240' in program identice.cpp:24:1: error: stray '\302' in program identice.cpp:24:1: error: stray '\240' in program identice.cpp:25:1: error: stray '\302' in program return 0; ^ identice.cpp:25:1: error: stray '\240' in program identice.cpp:25:1: error: stray '\302' in program identice.cpp:25:1: error: stray '\240' in program identice.cpp:25:1: error: stray '\302' in program identice.cpp:25:1: error: stray '\240' in program identice.cpp: In function 'int main()': identice.cpp:5:5: error: 'cin' was not declared in this scope cin >> n; ^ identice.cpp:22:9: error: 'cout' was not declared in this scope cout<<"DA"; ^ identice.cpp:24:9: error: 'cout' was not declared in this scope cout<<"NU"; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Identice 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ă.