#2302
Memory009
Se dau două șiruri de numere A
și B
.Calculati A
∩ B
.
Problema | Memory009 | Operații I/O |
memory009.in /memory009.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #52568068 | Utilizator | |
Fișier | memory009.cpp | Dimensiune | 511 B |
Data încărcării | 03 Octombrie 2024, 12:47 | Scor / rezultat | Eroare de compilare |
memory009.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream fout("memory009.out") ^ memory009.cpp: In function 'int main()': memory009.cpp:8:10: error: 'n' was not declared in this scope cin>>n>>m; ^ memory009.cpp:8:13: error: 'm' was not declared in this scope cin>>n>>m; ^ memory009.cpp:9:9: error: 'i' was not declared in this scope for(i=1; i<=n; i++) ^ memory009.cpp:11:14: error: 'x' was not declared in this scope fin>>x; ^ memory009.cpp:12:9: error: 'A' was not declared in this scope A[x]++; ^ memory009.cpp:14:9: error: 'i' was not declared in this scope for(i=1; i<=m; i++) ^ memory009.cpp:16:14: error: 'x' was not declared in this scope fin>>x; ^ memory009.cpp:17:9: error: 'B' was not declared in this scope B[x]++; ^ memory009.cpp:19:9: error: 'i' was not declared in this scope for(i=1; i<=30; i++) ^ memory009.cpp:21:12: error: 'A' was not declared in this scope if(A[i]!=0 && B[i]!=0) ^ memory009.cpp:21:23: error: 'B' was not declared in this scope if(A[i]!=0 && B[i]!=0) ^ memory009.cpp:23:13: error: 'fout' was not declared in this scope fout<<i<<" "; ^ memory009.cpp:27:5: error: 'fout' was not declared in this scope fout.close(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Memory009 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ă.