#125
Permutari2
Se citeşte un număr natural nenul n
, apoi n
numere naturale distincte. Să se afişeze, în ordine lexicografică, permutările mulţimii formate din cele n
numere citite.
Problema | Permutari2 | Operații I/O |
permutari2.in /permutari2.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52771963 | Utilizator | |
Fișier | permutari2.cpp | Dimensiune | 1.04 KB |
Data încărcării | 09 Octombrie 2024, 08:38 | Scor / rezultat | Eroare de compilare |
permutari2.cpp:9:1: error: stray '\302' in program for(int i = 1; i < k; ++i) ^ permutari2.cpp:9:1: error: stray '\240' in program permutari2.cpp:9:1: error: stray '\302' in program permutari2.cpp:9:1: error: stray '\240' in program permutari2.cpp:10:1: error: stray '\302' in program if(st[k] == st[i]) ^ permutari2.cpp:10:1: error: stray '\240' in program permutari2.cpp:10:1: error: stray '\302' in program permutari2.cpp:10:1: error: stray '\240' in program permutari2.cpp:10:1: error: stray '\302' in program permutari2.cpp:10:1: error: stray '\240' in program permutari2.cpp:10:1: error: stray '\302' in program permutari2.cpp:10:1: error: stray '\240' in program permutari2.cpp:11:1: error: stray '\302' in program return 0; ^ permutari2.cpp:11:1: error: stray '\240' in program permutari2.cpp:11:1: error: stray '\302' in program permutari2.cpp:11:1: error: stray '\240' in program permutari2.cpp:11:1: error: stray '\302' in program permutari2.cpp:11:1: error: stray '\240' in program permutari2.cpp:11:1: error: stray '\302' in program permutari2.cpp:11:1: error: stray '\240' in program permutari2.cpp:11:1: error: stray '\302' in program permutari2.cpp:11:1: error: stray '\240' in program permutari2.cpp:11:1: error: stray '\302' in program permutari2.cpp:11:1: error: stray '\240' in program permutari2.cpp:12:1: error: stray '\302' in program return 1; ^ permutari2.cpp:12:1: error: stray '\240' in program permutari2.cpp:12:1: error: stray '\302' in program permutari2.cpp:12:1: error: stray '\240' in program permutari2.cpp:16:1: error: stray '\302' in program for(int i = 1; i <= k; ++i) ^ permutari2.cpp:16:1: error: stray '\240' in program permutari2.cpp:16:1: error: stray '\302' in program permutari2.cpp:16:1: error: stray '\240' in program permutari2.cpp:17:1: error: stray '\302' in program fout << st[i] << " "; ^ permutari2.cpp:17:1: error: stray '\240' in program permutari2.cpp:17:1: error: stray '\302' in program permutari2.cpp:17:1: error: stray '\240' in program permutari2.cpp:17:1: error: stray '\302' in program permutari2.cpp:17:1: error: stray '\240' in program permutari2.cpp:17:1: error: stray '\302' in program permutari2.cpp:17:1: error: stray '\240' in program permutari2.cpp:18:1: error: stray '\302' in program fout << endl; ^ permutari2.cpp:18:1: error: stray '\240' in program permutari2.cpp:18:1: error: stray '\302' in program permutari2.cpp:18:1: error: stray '\240' in program permutari2.cpp:22:1: error: stray '\302' in program for(int i = 1; i <= n; ++i) ^ permutari2.cpp:22:1: error: stray '\240' in program permutari2.cpp:22:1: error: stray '\302' in program permutari2.cpp:22:1: error: stray '\240' in program permutari2.cpp:23:1: error: stray '\302' in program { ^ permutari2.cpp:23:1: error: stray '\240' in program permutari2.cpp:23:1: error: stray '\302' in program permutari2.cpp:23:1: error: stray '\240' in program permutari2.cpp:24:1: error: stray '\302' in program st[k] = v[i]; ^ permutari2.cpp:24:1: error: stray '\240' in program permutari2.cpp:24:1: error: stray '\302' in program permutari2.cpp:24:1: error: stray '\240' in program permutari2.cpp:24:1: error: stray '\302' in program permutari2.cpp:24:1: error: stray '\240' in program permutari2.cpp:24:1: error: stray '\302' in program permutari2.cpp:24:1: error: stray '\240' in program permutari2.cpp:25:1: error: stray '\302' in program if(valid(k)) ^ permutari2.cpp:25:1: error: stray '\240' in program permutari2.cpp:25:1: error: stray '\302' in program permutari2.cpp:25:1: error: stray '\240' in program permutari2.cpp:25:1: error: stray '\302' in program permutari2.cpp:25:1: error: stray '\240' in program permutari2.cpp:25:1: error: stray '\302' in program permutari2.cpp:25:1: error: stray '\240' in program permutari2.cpp:26:1: error: stray '\302' in program if(k == n) ^ permutari2.cpp:26:1: error: stray '\240' in program permutari2.cpp:26:1: error: stray '\302' in program permutari2.cpp:26:1: error: stray '\240' in program permutari2.cpp:26:1: error: stray '\302' in program permutari2.cpp:26:1: error: stray '\240' in program permutari2.cpp:26:1: error: stray '\302' in program permutari2.cpp:26:1: error: stray '\240' in program permutari2.cpp:26:1: error: stray '\302' in program permutari2.cpp:26:1: error: stray '\240' in program permutari2.cpp:26:1: error: stray '\302' in program permutari2.cpp:26:1: error: stray '\240' in program permutari2.cpp:27:1: error: stray '\302' in program afisare(k); ^ permutari2.cpp:27:1: error: stray '\240' in program permutari2.cpp:27:1: error: stray '\302' in program permutari2.cpp:27:1: error: stray '\240' in program permutari2.cpp:27:1: error: stray '\302' in program permutari2.cpp:27:1: error: stray '\240' in program permutari2.cpp:27:1: error: stray '\302' in program permutari2.cpp:27:1: error: stray '\240' in program permutari2.cpp:27:1: error: stray '\302' in program permutari2.cpp:27:1: error: stray '\240' in program permutari2.cpp:27:1: error: stray '\302' in program permutari2.cpp:27:1: error: stray '\240' in program permutari2.cpp:27:1: error: stray '\302' in program permutari2.cpp:27:1: error: stray '\240' in program permutari2.cpp:27:1: error: stray '\302' in program permutari2.cpp:27:1: error: stray '\240' in program permutari2.cpp:28:1: error: stray '\302' in program else ^ permutari2.cpp:28:1: error: stray '\240' in program permutari2.cpp:28:1: error: stray '\302' in program permutari2.cpp:28:1: error: stray '\240' in program permutari2.cpp:28:1: error: stray '\302' in program permutari2.cpp:28:1: error: stray '\240' in program permutari2.cpp:28:1: error: stray '\302' in program permutari2.cpp:28:1: error: stray '\240' in program permutari2.cpp:29:1: error: stray '\302' in program Back(k + 1); ^ permutari2.cpp:29:1: error: stray '\240' in program permutari2.cpp:29:1: error: stray '\302' in program permutari2.cpp:29:1: error: stray '\240' in program permutari2.cpp:29:1: error: stray '\302' in program permutari2.cpp:29:1: error: stray '\240' in program permutari2.cpp:29:1: error: stray '\302' in program permutari2.cpp:29:1: error: stray '\240' in program permutari2.cpp:29:1: error: stray '\302' in program permutari2.cpp:29:1: error: stray '\240' in program permutari2.cpp:29:1: error: stray '\302' in program permutari2.cpp:29:1: error: stray '\240' in program permutari2.cpp:30:1: error: stray '\302' in program } ^ permutari2.cpp:30:1: error: stray '\240' in program permutari2.cpp:30:1: error: stray '\302' in program permutari2.cpp:30:1: error: stray '\240' in program permutari2.cpp:34:1: error: stray '\302' in program int i, j; ^ permutari2.cpp:34:1: error: stray '\240' in program permutari2.cpp:34:1: error: stray '\302' in program permutari2.cpp:34:1: error: stray '\240' in program permutari2.cpp:35:1: error: stray '\302' in program for(i = 1; i <= n-1; ++i) ^ permutari2.cpp:35:1: error: stray '\240' in program permutari2.cpp:35:1: error: stray '\302' in program permutari2.cpp:35:1: error: stray '\240' in program permutari2.cpp:36:1: error: stray '\302' in program for(j = i + 1; j <= n; ++j) ^ permutari2.cpp:36:1: error: stray '\240' in program permutari2.cpp:36:1: error: stray '\302' in program permutari2.cpp:36:1: error: stray '\240' in program permutari2.cpp:36:1: error: stray '\302' in program permutari2.cpp:36:1: error: stray '\240' in program permutari2.cpp:36:1: error: stray '\302' in program permutari2.cpp:36:1: error: stray '\240' in program permutari2.cpp:37:1: error: stray '\302' in program if(v[i] > v[j]) ^ permutari2.cpp:37:1: error: stray '\240' in program permutari2.cpp:37:1: error: stray '\302' in program permutari2.cpp:37:1: error: stray '\240' in program permutari2.cpp:37:1: error: stray '\302' in program permutari2.cpp:37:1: error: stray '\240' in program permutari2.cpp:37:1: error: stray '\302' in program permutari2.cpp:37:1: error: stray '\240' in program permutari2.cpp:37:1: error: stray '\302' in program permutari2.cpp:37:1: error: stray '\240' in program permutari2.cpp:37:1: error: stray '\302' in program permutari2.cpp:37:1: error: stray '\240' in program permutari2.cpp:38:1: error: stray '\302' in program { ^ permutari2.cpp:38:1: error: stray '\240' in program permutari2.cpp:38:1: error: stray '\302' in program permutari2.cpp:38:1: error: stray '\240' in program permutari2.cpp:39:1: error: stray '\302' in program int aux = v[i]; ^ permutari2.cpp:39:1: error: stray '\240' in program permutari2.cpp:39:1: error: stray '\302' in program permutari2.cpp:39:1: error: stray '\240' in program permutari2.cpp:39:1: error: stray '\302' in program permutari2.cpp:39:1: error: stray '\240' in program permutari2.cpp:39:1: error: stray '\302' in program permutari2.cpp:39:1: error: stray '\240' in program permutari2.cpp:40:1: error: stray '\302' in program v[i] = v[j]; ^ permutari2.cpp:40:1: error: stray '\240' in program permutari2.cpp:40:1: error: stray '\302' in program permutari2.cpp:40:1: error: stray '\240' in program permutari2.cpp:40:1: error: stray '\302' in program permutari2.cpp:40:1: error: stray '\240' in program permutari2.cpp:40:1: error: stray '\302' in program permutari2.cpp:40:1: error: stray '\240' in program permutari2.cpp:41:1: error: stray '\302' in program v[j] = aux; ^ permutari2.cpp:41:1: error: stray '\240' in program permutari2.cpp:41:1: error: stray '\302' in program permutari2.cpp:41:1: error: stray '\240' in program permutari2.cpp:41:1: error: stray '\302' in program permutari2.cpp:41:1: error: stray '\240' in program permutari2.cpp:41:1: error: stray '\302' in program permutari2.cpp:41:1: error: stray '\240' in program permutari2.cpp:42:1: error: stray '\302' in program } ^ permutari2.cpp:42:1: error: stray '\240' in program permutari2.cpp:42:1: error: stray '\302' in program permutari2.cpp:42:1: error: stray '\240' in program permutari2.cpp:46:1: error: stray '\302' in program fin >> n; ^ permutari2.cpp:46:1: error: stray '\240' in program permutari2.cpp:46:1: error: stray '\302' in program permutari2.cpp:46:1: error: stray '\240' in program permutari2.cpp:47:1: error: stray '\302' in program for(int i = 1; i <= n; ++i) ^ permutari2.cpp:47:1: error: stray '\240' in program permutari2.cpp:47:1: error: stray '\302' in program permutari2.cpp:47:1: error: stray '\240' in program permutari2.cpp:48:1: error: stray '\302' in program fin >> v[i]; ^ permutari2.cpp:48:1: error: stray '\240' in program permutari2.cpp:48:1: error: stray '\302' in program permutari2.cpp:48:1: error: stray '\240' in program permutari2.cpp:48:1: error: stray '\302' in program permutari2.cpp:48:1: error: stray '\240' in program permutari2.cpp:48:1: error: stray '\302' in program permutari2.cpp:48:1: error: stray '\240' in program permutari2.cpp:49:1: error: stray '\302' in program sortare(n,v); ^ permutari2.cpp:49:1: error: stray '\240' in program permutari2.cpp:49:1: error: stray '\302' in program permutari2.cpp:49:1: error: stray '\240' in program permutari2.cpp:50:1: error: stray '\302' in program Back(1); ^ permutari2.cpp:50:1: error: stray '\240' in program permutari2.cpp:50:1: error: stray '\302' in program permutari2.cpp:50:1: error: stray '\240' in program permutari2.cpp:51:1: error: stray '\302' in program return 0; ^ permutari2.cpp:51:1: error: stray '\240' in program permutari2.cpp:51:1: error: stray '\302' in program permutari2.cpp:51:1: error: stray '\240' in program permutari2.cpp: In function 'void Back(int)': permutari2.cpp:25:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(valid(k)) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Permutari2 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ă.