#1281
Regine1
Se consideră o tablă de șah de dimensiune n
. Să se plaseze pe tablă n
regine astfel încât să nu existe două regine care să se atace.
Problema | Regine1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16838476 | Utilizator | |
Fișier | regine1.cpp | Dimensiune | 994 B |
Data încărcării | 22 Septembrie 2019, 15:09 | Scor / rezultat | Eroare de compilare |
regine1.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <bits/stdc++.h> ^ regine1.cpp:2:1: error: stray '\302' in program using namespace std; ^ regine1.cpp:2:1: error: stray '\240' in program regine1.cpp:2:1: error: stray '\302' in program regine1.cpp:2:1: error: stray '\240' in program regine1.cpp:3:1: error: stray '\302' in program int n, x[20]; ^ regine1.cpp:3:1: error: stray '\240' in program regine1.cpp:3:1: error: stray '\302' in program regine1.cpp:3:1: error: stray '\240' in program regine1.cpp:4:1: error: stray '\302' in program bool gasit; ^ regine1.cpp:4:1: error: stray '\240' in program regine1.cpp:5:1: error: stray '\302' in program bool cont(int k) ^ regine1.cpp:5:1: error: stray '\240' in program regine1.cpp:5:1: error: stray '\302' in program regine1.cpp:5:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program for(int i = 1 ; i < k ; i ++) ^ regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:7:1: error: stray '\302' in program regine1.cpp:7:1: error: stray '\240' in program regine1.cpp:8:1: error: stray '\302' in program { ^ regine1.cpp:8:1: error: stray '\240' in program regine1.cpp:8:1: error: stray '\302' in program regine1.cpp:8:1: error: stray '\240' in program regine1.cpp:8:1: error: stray '\302' in program regine1.cpp:8:1: error: stray '\240' in program regine1.cpp:8:1: error: stray '\302' in program regine1.cpp:8:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program if(x[i] == x[k]) return false; ^ regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:9:1: error: stray '\302' in program regine1.cpp:9:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program if(k - i == abs(x[k] - x[i])) return false; ^ regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:10:1: error: stray '\302' in program regine1.cpp:10:1: error: stray '\240' in program regine1.cpp:11:1: error: stray '\302' in program } ^ regine1.cpp:11:1: error: stray '\240' in program regine1.cpp:11:1: error: stray '\302' in program regine1.cpp:11:1: error: stray '\240' in program regine1.cpp:11:1: error: stray '\302' in program regine1.cpp:11:1: error: stray '\240' in program regine1.cpp:11:1: error: stray '\302' in program regine1.cpp:11:1: error: stray '\240' in program regine1.cpp:12:1: error: stray '\302' in program return true; ^ regine1.cpp:12:1: error: stray '\240' in program regine1.cpp:12:1: error: stray '\302' in program regine1.cpp:12:1: error: stray '\240' in program regine1.cpp:12:1: error: stray '\302' in program regine1.cpp:12:1: error: stray '\240' in program regine1.cpp:12:1: error: stray '\302' in program regine1.cpp:12:1: error: stray '\240' in program regine1.cpp:12:1: error: stray '\302' in program regine1.cpp:12:1: error: stray '\240' in program regine1.cpp:14:1: error: stray '\302' in program void afisare(int n) ^ regine1.cpp:14:1: error: stray '\240' in program regine1.cpp:14:1: error: stray '\302' in program regine1.cpp:14:1: error: stray '\240' in program regine1.cpp:16:1: error: stray '\302' in program gasit = true; ^ regine1.cpp:16:1: error: stray '\240' in program regine1.cpp:16:1: error: stray '\302' in program regine1.cpp:16:1: error: stray '\240' in program regine1.cpp:16:1: error: stray '\302' in program regine1.cpp:16:1: error: stray '\240' in program regine1.cpp:16:1: error: stray '\302' in program regine1.cpp:16:1: error: stray '\240' in program regine1.cpp:16:1: error: stray '\302' in program regine1.cpp:16:1: error: stray '\240' in program regine1.cpp:16:1: error: stray '\302' in program regine1.cpp:16:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program for(int i = 1 ; i <= n ; i ++) ^ regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:17:1: error: stray '\302' in program regine1.cpp:17:1: error: stray '\240' in program regine1.cpp:18:1: error: stray '\302' in program { ^ regine1.cpp:18:1: error: stray '\240' in program regine1.cpp:18:1: error: stray '\302' in program regine1.cpp:18:1: error: stray '\240' in program regine1.cpp:18:1: error: stray '\302' in program regine1.cpp:18:1: error: stray '\240' in program regine1.cpp:18:1: error: stray '\302' in program regine1.cpp:18:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program for(int j = 1 ; j <= n ; j ++) ^ regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:19:1: error: stray '\302' in program regine1.cpp:19:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program if(x[j] == i) cout << "* "; ^ regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:20:1: error: stray '\302' in program regine1.cpp:20:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program else cout << "- "; ^ regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:21:1: error: stray '\302' in program regine1.cpp:21:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program cout << "\n"; ^ regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:22:1: error: stray '\302' in program regine1.cpp:22:1: error: stray '\240' in program regine1.cpp:23:1: error: stray '\302' in program } ^ regine1.cpp:23:1: error: stray '\240' in program regine1.cpp:23:1: error: stray '\302' in program regine1.cpp:23:1: error: stray '\240' in program regine1.cpp:23:1: error: stray '\302' in program regine1.cpp:23:1: error: stray '\240' in program regine1.cpp:23:1: error: stray '\302' in program regine1.cpp:23:1: error: stray '\240' in program regine1.cpp:25:1: error: stray '\302' in program void back(int k) ^ regine1.cpp:25:1: error: stray '\240' in program regine1.cpp:25:1: error: stray '\302' in program regine1.cpp:25:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program for(int i = 1 ; !gasit && i <= n ; i ++) ^ regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:27:1: error: stray '\302' in program regine1.cpp:27:1: error: stray '\240' in program regine1.cpp:28:1: error: stray '\302' in program { ^ regine1.cpp:28:1: error: stray '\240' in program regine1.cpp:28:1: error: stray '\302' in program regine1.cpp:28:1: error: stray '\240' in program regine1.cpp:28:1: error: stray '\302' in program regine1.cpp:28:1: error: stray '\240' in program regine1.cpp:28:1: error: stray '\302' in program regine1.cpp:28:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program x[k] = i; ^ regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:29:1: error: stray '\302' in program regine1.cpp:29:1: error: stray '\240' in program regine1.cpp:30:1: error: stray '\302' in program if(cont(k)) ^ regine1.cpp:30:1: error: stray '\240' in program regine1.cpp:30:1: error: stray '\302' in program regine1.cpp:30:1: error: stray '\240' in program regine1.cpp:30:1: error: stray '\302' in program regine1.cpp:30:1: error: stray '\240' in program regine1.cpp:30:1: error: stray '\302' in program regine1.cpp:30:1: error: stray '\240' in program regine1.cpp:30:1: error: stray '\302' in program regine1.cpp:30:1: error: stray '\240' in program regine1.cpp:30:1: error: stray '\302' in program regine1.cpp:30:1: error: stray '\240' in program regine1.cpp:30:1: error: stray '\302' in program regine1.cpp:30:1: error: stray '\240' in program regine1.cpp:30:1: error: stray '\302' in program regine1.cpp:30:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program if(k == n) afisare(n); ^ regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:31:1: error: stray '\302' in program regine1.cpp:31:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program else back(k + 1); ^ regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:32:1: error: stray '\302' in program regine1.cpp:32:1: error: stray '\240' in program regine1.cpp:33:1: error: stray '\302' in program } ^ regine1.cpp:33:1: error: stray '\240' in program regine1.cpp:33:1: error: stray '\302' in program regine1.cpp:33:1: error: stray '\240' in program regine1.cpp:33:1: error: stray '\302' in program regine1.cpp:33:1: error: stray '\240' in program regine1.cpp:33:1: error: stray '\302' in program regine1.cpp:33:1: error: stray '\240' in program regine1.cpp:35:1: error: stray '\302' in program int main() ^ regine1.cpp:35:1: error: stray '\240' in program regine1.cpp:37:1: error: stray '\302' in program cin >> n; ^ regine1.cpp:37:1: error: stray '\240' in program regine1.cpp:37:1: error: stray '\302' in program regine1.cpp:37:1: error: stray '\240' in program regine1.cpp:37:1: error: stray '\302' in program regine1.cpp:37:1: error: stray '\240' in program regine1.cpp:37:1: error: stray '\302' in program regine1.cpp:37:1: error: stray '\240' in program regine1.cpp:37:1: error: stray '\302' in program regine1.cpp:37:1: error: stray '\240' in program regine1.cpp:37:1: error: stray '\302' in program regine1.cpp:37:1: error: stray '\240' in program regine1.cpp:38:1: error: stray '\302' in program back(1); ^ regine1.cpp:38:1: error: stray '\240' in program regine1.cpp:38:1: error: stray '\302' in program regine1.cpp:38:1: error: stray '\240' in program regine1.cpp:38:1: error: stray '\302' in program regine1.cpp:38:1: error: stray '\240' in program regine1.cpp:38:1: error: stray '\302' in program regine1.cpp:38:1: error: stray '\240' in program regine1.cpp:39:1: error: stray '\302' in program return 0; ^ regine1.cpp:39:1: error: stray '\240' in program regine1.cpp:39:1: error: stray '\302' in program regine1.cpp:39:1: error: stray '\240' in program regine1.cpp:39:1: error: stray '\302' in program regine1.cpp:39:1: error: stray '\240' in program regine1.cpp:39:1: error: stray '\302' in program regine1.cpp:39:1: error: stray '\240' in program regine1.cpp:39:1: error: stray '\302' in program regine1.cpp:39:1: error: stray '\240' in program regine1.cpp: In function 'bool cont(int)': regine1.cpp:10:50: error: 'abs' was not declared in this scope if(k - i == abs(x[k] - x[i])) return false; ^ regine1.cpp: In function 'void afisare(int)': regine1.cpp:20:36: error: 'cout' was not declared in this scope if(x[j] == i) cout << "* "; ^ regine1.cpp:21:43: error: 'cout' was not declared in this scope else cout << "- "; ^ regine1.cpp:22:17: error: 'cout' was not declared in this scope cout << "\n"; ^ regine1.cpp: In function 'void back(int)': regine1.cpp:30:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(cont(k)) ^ regine1.cpp: In function 'int main()': regine1.cpp:37:9: error: 'cin' was not declared in this scope cin >> n; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Regine1 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ă.