#772
MaxAp
Se dă o matrice cu n
linii şi m
coloane şi elemente numere naturale. Să se determine elementul cu număr maxim de apariții în matrice. Dacă există mai multe elemente cu număr maxim de apariții se vor afișa toate, în ordine crescătoare.
Problema | MaxAp | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #23513118 | Utilizator | |
Fișier | maxap.cpp | Dimensiune | 767 B |
Data încărcării | 20 Iulie 2020, 14:57 | Scor / rezultat | Eroare de compilare |
maxap.cpp:7:1: error: stray '\302' in program int n,m,nrmaxim=0,solutii[100],z=0,maximap=0; ^ maxap.cpp:7:1: error: stray '\240' in program maxap.cpp:7:1: error: stray '\302' in program maxap.cpp:7:1: error: stray '\240' in program maxap.cpp:7:1: error: stray '\302' in program maxap.cpp:7:1: error: stray '\240' in program maxap.cpp:8:1: error: stray '\302' in program cin>>n>>m; ^ maxap.cpp:8:1: error: stray '\240' in program maxap.cpp:8:1: error: stray '\302' in program maxap.cpp:8:1: error: stray '\240' in program maxap.cpp:8:1: error: stray '\302' in program maxap.cpp:8:1: error: stray '\240' in program maxap.cpp:9:1: error: stray '\302' in program for(int i=0;i<n;i++) ^ maxap.cpp:9:1: error: stray '\240' in program maxap.cpp:9:1: error: stray '\302' in program maxap.cpp:9:1: error: stray '\240' in program maxap.cpp:9:1: error: stray '\302' in program maxap.cpp:9:1: error: stray '\240' in program maxap.cpp:10:1: error: stray '\302' in program for(int j=0;j<m;j++) ^ maxap.cpp:10:1: error: stray '\240' in program maxap.cpp:10:1: error: stray '\302' in program maxap.cpp:10:1: error: stray '\240' in program maxap.cpp:10:1: error: stray '\302' in program maxap.cpp:10:1: error: stray '\240' in program maxap.cpp:10:1: error: stray '\302' in program maxap.cpp:10:1: error: stray '\240' in program maxap.cpp:10:1: error: stray '\302' in program maxap.cpp:10:1: error: stray '\240' in program maxap.cpp:10:1: error: stray '\302' in program maxap.cpp:10:1: error: stray '\240' in program maxap.cpp:10:1: error: stray '\302' in program maxap.cpp:10:1: error: stray '\240' in program maxap.cpp:11:1: error: stray '\302' in program { ^ maxap.cpp:11:1: error: stray '\240' in program maxap.cpp:11:1: error: stray '\302' in program maxap.cpp:11:1: error: stray '\240' in program maxap.cpp:11:1: error: stray '\302' in program maxap.cpp:11:1: error: stray '\240' in program maxap.cpp:11:1: error: stray '\302' in program maxap.cpp:11:1: error: stray '\240' in program maxap.cpp:11:1: error: stray '\302' in program maxap.cpp:11:1: error: stray '\240' in program maxap.cpp:11:1: error: stray '\302' in program maxap.cpp:11:1: error: stray '\240' in program maxap.cpp:11:1: error: stray '\302' in program maxap.cpp:11:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program cin>>x[i][j]; ^ maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:12:1: error: stray '\302' in program maxap.cpp:12:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program v[x[i][j]]++; ^ maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:13:1: error: stray '\302' in program maxap.cpp:13:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program if(x[i][j]>nrmaxim) nrmaxim=x[i][j]; ^ maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:14:1: error: stray '\302' in program maxap.cpp:14:1: error: stray '\240' in program maxap.cpp:15:1: error: stray '\302' in program } ^ maxap.cpp:15:1: error: stray '\240' in program maxap.cpp:15:1: error: stray '\302' in program maxap.cpp:15:1: error: stray '\240' in program maxap.cpp:15:1: error: stray '\302' in program maxap.cpp:15:1: error: stray '\240' in program maxap.cpp:15:1: error: stray '\302' in program maxap.cpp:15:1: error: stray '\240' in program maxap.cpp:15:1: error: stray '\302' in program maxap.cpp:15:1: error: stray '\240' in program maxap.cpp:15:1: error: stray '\302' in program maxap.cpp:15:1: error: stray '\240' in program maxap.cpp:15:1: error: stray '\302' in program maxap.cpp:15:1: error: stray '\240' in program maxap.cpp:17:1: error: stray '\302' in program for(int i=1;i<=nrmaxim;i++) ^ maxap.cpp:17:1: error: stray '\240' in program maxap.cpp:17:1: error: stray '\302' in program maxap.cpp:17:1: error: stray '\240' in program maxap.cpp:17:1: error: stray '\302' in program maxap.cpp:17:1: error: stray '\240' in program maxap.cpp:18:1: error: stray '\302' in program if(v[i]>maximap) maximap=v[i]; ^ maxap.cpp:18:1: error: stray '\240' in program maxap.cpp:18:1: error: stray '\302' in program maxap.cpp:18:1: error: stray '\240' in program maxap.cpp:18:1: error: stray '\302' in program maxap.cpp:18:1: error: stray '\240' in program maxap.cpp:18:1: error: stray '\302' in program maxap.cpp:18:1: error: stray '\240' in program maxap.cpp:18:1: error: stray '\302' in program maxap.cpp:18:1: error: stray '\240' in program maxap.cpp:18:1: error: stray '\302' in program maxap.cpp:18:1: error: stray '\240' in program maxap.cpp:18:1: error: stray '\302' in program maxap.cpp:18:1: error: stray '\240' in program maxap.cpp:19:1: error: stray '\302' in program for(int i=1;i<=nrmaxim;i++) ^ maxap.cpp:19:1: error: stray '\240' in program maxap.cpp:19:1: error: stray '\302' in program maxap.cpp:19:1: error: stray '\240' in program maxap.cpp:19:1: error: stray '\302' in program maxap.cpp:19:1: error: stray '\240' in program maxap.cpp:20:1: error: stray '\302' in program { ^ maxap.cpp:20:1: error: stray '\240' in program maxap.cpp:20:1: error: stray '\302' in program maxap.cpp:20:1: error: stray '\240' in program maxap.cpp:20:1: error: stray '\302' in program maxap.cpp:20:1: error: stray '\240' in program maxap.cpp:21:1: error: stray '\302' in program if(v[i]==maximap) ^ maxap.cpp:21:1: error: stray '\240' in program maxap.cpp:21:1: error: stray '\302' in program maxap.cpp:21:1: error: stray '\240' in program maxap.cpp:21:1: error: stray '\302' in program maxap.cpp:21:1: error: stray '\240' in program maxap.cpp:21:1: error: stray '\302' in program maxap.cpp:21:1: error: stray '\240' in program maxap.cpp:21:1: error: stray '\302' in program maxap.cpp:21:1: error: stray '\240' in program maxap.cpp:21:1: error: stray '\302' in program maxap.cpp:21:1: error: stray '\240' in program maxap.cpp:21:1: error: stray '\302' in program maxap.cpp:21:1: error: stray '\240' in program maxap.cpp:22:1: error: stray '\302' in program { ^ maxap.cpp:22:1: error: stray '\240' in program maxap.cpp:22:1: error: stray '\302' in program maxap.cpp:22:1: error: stray '\240' in program maxap.cpp:22:1: error: stray '\302' in program maxap.cpp:22:1: error: stray '\240' in program maxap.cpp:22:1: error: stray '\302' in program maxap.cpp:22:1: error: stray '\240' in program maxap.cpp:22:1: error: stray '\302' in program maxap.cpp:22:1: error: stray '\240' in program maxap.cpp:22:1: error: stray '\302' in program maxap.cpp:22:1: error: stray '\240' in program maxap.cpp:22:1: error: stray '\302' in program maxap.cpp:22:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program z++; ^ maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:23:1: error: stray '\302' in program maxap.cpp:23:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program solutii[z]=i; ^ maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:24:1: error: stray '\302' in program maxap.cpp:24:1: error: stray '\240' in program maxap.cpp:25:1: error: stray '\302' in program } ^ maxap.cpp:25:1: error: stray '\240' in program maxap.cpp:25:1: error: stray '\302' in program maxap.cpp:25:1: error: stray '\240' in program maxap.cpp:25:1: error: stray '\302' in program maxap.cpp:25:1: error: stray '\240' in program maxap.cpp:25:1: error: stray '\302' in program maxap.cpp:25:1: error: stray '\240' in program maxap.cpp:25:1: error: stray '\302' in program maxap.cpp:25:1: error: stray '\240' in program maxap.cpp:25:1: error: stray '\302' in program maxap.cpp:25:1: error: stray '\240' in program maxap.cpp:25:1: error: stray '\302' in program maxap.cpp:25:1: error: stray '\240' in program maxap.cpp:26:1: error: stray '\302' in program } ^ maxap.cpp:26:1: error: stray '\240' in program maxap.cpp:26:1: error: stray '\302' in program maxap.cpp:26:1: error: stray '\240' in program maxap.cpp:26:1: error: stray '\302' in program maxap.cpp:26:1: error: stray '\240' in program maxap.cpp:27:1: error: stray '\302' in program for(int i=1;i<=z;i++) ^ maxap.cpp:27:1: error: stray '\240' in program maxap.cpp:27:1: error: stray '\302' in program maxap.cpp:27:1: error: stray '\240' in program maxap.cpp:27:1: error: stray '\302' in program maxap.cpp:27:1: error: stray '\240' in program maxap.cpp:28:1: error: stray '\302' in program cout<<solutii[i]<<" "; ^ maxap.cpp:28:1: error: stray '\240' in program maxap.cpp:28:1: error: stray '\302' in program maxap.cpp:28:1: error: stray '\240' in program maxap.cpp:28:1: error: stray '\302' in program maxap.cpp:28:1: error: stray '\240' in program maxap.cpp:28:1: error: stray '\302' in program maxap.cpp:28:1: error: stray '\240' in program maxap.cpp:28:1: error: stray '\302' in program maxap.cpp:28:1: error: stray '\240' in program maxap.cpp:28:1: error: stray '\302' in program maxap.cpp:28:1: error: stray '\240' in program maxap.cpp:28:1: error: stray '\302' in program maxap.cpp:28:1: error: stray '\240' in program maxap.cpp:29:1: error: stray '\302' in program return 0; ^ maxap.cpp:29:1: error: stray '\240' in program maxap.cpp:29:1: error: stray '\302' in program maxap.cpp:29:1: error: stray '\240' in program maxap.cpp:29:1: error: stray '\302' in program maxap.cpp:29:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MaxAp 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ă.