#86
HalfSort
Să se scrie un program care ordonează crescător elementele din prima jumătate a unui vector și descrescător elementele din a doua jumătate.
Problema | HalfSort | Operații I/O |
halfsort.in /halfsort.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #9698090 | Utilizator | |
Fișier | halfsort.cpp | Dimensiune | 923 B |
Data încărcării | 23 Mai 2018, 11:44 | Scor / rezultat | Eroare de compilare |
halfsort.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ halfsort.cpp:2:1: error: stray '\302' in program using namespace std; ^ halfsort.cpp:2:1: error: stray '\240' in program halfsort.cpp:2:1: error: stray '\302' in program halfsort.cpp:2:1: error: stray '\240' in program halfsort.cpp:3:1: error: stray '\302' in program int n,k,v[1005],aux,i; ^ halfsort.cpp:3:1: error: stray '\240' in program halfsort.cpp:4:1: error: stray '\302' in program bool ok; ^ halfsort.cpp:4:1: error: stray '\240' in program halfsort.cpp:5:1: error: stray '\302' in program int main() ^ halfsort.cpp:5:1: error: stray '\240' in program halfsort.cpp:7:1: error: stray '\302' in program cin >> n; ^ halfsort.cpp:7:1: error: stray '\240' in program halfsort.cpp:7:1: error: stray '\302' in program halfsort.cpp:7:1: error: stray '\240' in program halfsort.cpp:7:1: error: stray '\302' in program halfsort.cpp:7:1: error: stray '\240' in program halfsort.cpp:7:1: error: stray '\302' in program halfsort.cpp:7:1: error: stray '\240' in program halfsort.cpp:7:1: error: stray '\302' in program halfsort.cpp:7:1: error: stray '\240' in program halfsort.cpp:7:1: error: stray '\302' in program halfsort.cpp:7:1: error: stray '\240' in program halfsort.cpp:8:1: error: stray '\302' in program k = n / 2; ^ halfsort.cpp:8:1: error: stray '\240' in program halfsort.cpp:8:1: error: stray '\302' in program halfsort.cpp:8:1: error: stray '\240' in program halfsort.cpp:9:1: error: stray '\302' in program for(i=1;i<=n;i++) cin>>v[i]; ^ halfsort.cpp:9:1: error: stray '\240' in program halfsort.cpp:9:1: error: stray '\302' in program halfsort.cpp:9:1: error: stray '\240' in program halfsort.cpp:9:1: error: stray '\302' in program halfsort.cpp:9:1: error: stray '\240' in program halfsort.cpp:9:1: error: stray '\302' in program halfsort.cpp:9:1: error: stray '\240' in program halfsort.cpp:9:1: error: stray '\302' in program halfsort.cpp:9:1: error: stray '\240' in program halfsort.cpp:10:1: error: stray '\302' in program do ^ halfsort.cpp:10:1: error: stray '\240' in program halfsort.cpp:10:1: error: stray '\302' in program halfsort.cpp:10:1: error: stray '\240' in program halfsort.cpp:10:1: error: stray '\302' in program halfsort.cpp:10:1: error: stray '\240' in program halfsort.cpp:10:1: error: stray '\302' in program halfsort.cpp:10:1: error: stray '\240' in program halfsort.cpp:11:1: error: stray '\302' in program { ^ halfsort.cpp:11:1: error: stray '\240' in program halfsort.cpp:11:1: error: stray '\302' in program halfsort.cpp:11:1: error: stray '\240' in program halfsort.cpp:11:1: error: stray '\302' in program halfsort.cpp:11:1: error: stray '\240' in program halfsort.cpp:11:1: error: stray '\302' in program halfsort.cpp:11:1: error: stray '\240' in program halfsort.cpp:12:1: error: stray '\302' in program ok=true; ^ halfsort.cpp:12:1: error: stray '\240' in program halfsort.cpp:12:1: error: stray '\302' in program halfsort.cpp:12:1: error: stray '\240' in program halfsort.cpp:12:1: error: stray '\302' in program halfsort.cpp:12:1: error: stray '\240' in program halfsort.cpp:12:1: error: stray '\302' in program halfsort.cpp:12:1: error: stray '\240' in program halfsort.cpp:12:1: error: stray '\302' in program halfsort.cpp:12:1: error: stray '\240' in program halfsort.cpp:12:1: error: stray '\302' in program halfsort.cpp:12:1: error: stray '\240' in program halfsort.cpp:12:1: error: stray '\302' in program halfsort.cpp:12:1: error: stray '\240' in program halfsort.cpp:12:1: error: stray '\302' in program halfsort.cpp:12:1: error: stray '\240' in program halfsort.cpp:13:1: error: stray '\302' in program for(i=1;i<k;i++) ^ halfsort.cpp:13:1: error: stray '\240' in program halfsort.cpp:13:1: error: stray '\302' in program halfsort.cpp:13:1: error: stray '\240' in program halfsort.cpp:13:1: error: stray '\302' in program halfsort.cpp:13:1: error: stray '\240' in program halfsort.cpp:13:1: error: stray '\302' in program halfsort.cpp:13:1: error: stray '\240' in program halfsort.cpp:13:1: error: stray '\302' in program halfsort.cpp:13:1: error: stray '\240' in program halfsort.cpp:13:1: error: stray '\302' in program halfsort.cpp:13:1: error: stray '\240' in program halfsort.cpp:13:1: error: stray '\302' in program halfsort.cpp:13:1: error: stray '\240' in program halfsort.cpp:13:1: error: stray '\302' in program halfsort.cpp:13:1: error: stray '\240' in program halfsort.cpp:14:1: error: stray '\302' in program if(v[i]>v[i+1]) ^ halfsort.cpp:14:1: error: stray '\240' in program halfsort.cpp:14:1: error: stray '\302' in program halfsort.cpp:14:1: error: stray '\240' in program halfsort.cpp:14:1: error: stray '\302' in program halfsort.cpp:14:1: error: stray '\240' in program halfsort.cpp:14:1: error: stray '\302' in program halfsort.cpp:14:1: error: stray '\240' in program halfsort.cpp:14:1: error: stray '\302' in program halfsort.cpp:14:1: error: stray '\240' in program halfsort.cpp:14:1: error: stray '\302' in program halfsort.cpp:14:1: error: stray '\240' in program halfsort.cpp:14:1: error: stray '\302' in program halfsort.cpp:14:1: error: stray '\240' in program halfsort.cpp:14:1: error: stray '\302' in program halfsort.cpp:14:1: error: stray '\240' in program halfsort.cpp:14:1: error: stray '\302' in program halfsort.cpp:14:1: error: stray '\240' in program halfsort.cpp:15:1: error: stray '\302' in program { ^ halfsort.cpp:15:1: error: stray '\240' in program halfsort.cpp:15:1: error: stray '\302' in program halfsort.cpp:15:1: error: stray '\240' in program halfsort.cpp:15:1: error: stray '\302' in program halfsort.cpp:15:1: error: stray '\240' in program halfsort.cpp:15:1: error: stray '\302' in program halfsort.cpp:15:1: error: stray '\240' in program halfsort.cpp:15:1: error: stray '\302' in program halfsort.cpp:15:1: error: stray '\240' in program halfsort.cpp:15:1: error: stray '\302' in program halfsort.cpp:15:1: error: stray '\240' in program halfsort.cpp:15:1: error: stray '\302' in program halfsort.cpp:15:1: error: stray '\240' in program halfsort.cpp:15:1: error: stray '\302' in program halfsort.cpp:15:1: error: stray '\240' in program halfsort.cpp:15:1: error: stray '\302' in program halfsort.cpp:15:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program aux=v[i]; ^ halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:16:1: error: stray '\302' in program halfsort.cpp:16:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program v[i]=v[i+1]; ^ halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:17:1: error: stray '\302' in program halfsort.cpp:17:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program v[i+1]=aux; ^ halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:18:1: error: stray '\302' in program halfsort.cpp:18:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program ok=false; ^ halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:19:1: error: stray '\302' in program halfsort.cpp:19:1: error: stray '\240' in program halfsort.cpp:20:1: error: stray '\302' in program } ^ halfsort.cpp:20:1: error: stray '\240' in program halfsort.cpp:20:1: error: stray '\302' in program halfsort.cpp:20:1: error: stray '\240' in program halfsort.cpp:20:1: error: stray '\302' in program halfsort.cpp:20:1: error: stray '\240' in program halfsort.cpp:20:1: error: stray '\302' in program halfsort.cpp:20:1: error: stray '\240' in program halfsort.cpp:20:1: error: stray '\302' in program halfsort.cpp:20:1: error: stray '\240' in program halfsort.cpp:20:1: error: stray '\302' in program halfsort.cpp:20:1: error: stray '\240' in program halfsort.cpp:20:1: error: stray '\302' in program halfsort.cpp:20:1: error: stray '\240' in program halfsort.cpp:20:1: error: stray '\302' in program halfsort.cpp:20:1: error: stray '\240' in program halfsort.cpp:20:1: error: stray '\302' in program halfsort.cpp:20:1: error: stray '\240' in program halfsort.cpp:21:1: error: stray '\302' in program } while (!ok); ^ halfsort.cpp:21:1: error: stray '\240' in program halfsort.cpp:21:1: error: stray '\302' in program halfsort.cpp:21:1: error: stray '\240' in program halfsort.cpp:21:1: error: stray '\302' in program halfsort.cpp:21:1: error: stray '\240' in program halfsort.cpp:21:1: error: stray '\302' in program halfsort.cpp:21:1: error: stray '\240' in program halfsort.cpp:21:1: error: stray '\302' in program halfsort.cpp:21:1: error: stray '\240' in program halfsort.cpp:21:1: error: stray '\302' in program halfsort.cpp:21:1: error: stray '\240' in program halfsort.cpp:22:1: error: stray '\302' in program do ^ halfsort.cpp:22:1: error: stray '\240' in program halfsort.cpp:22:1: error: stray '\302' in program halfsort.cpp:22:1: error: stray '\240' in program halfsort.cpp:22:1: error: stray '\302' in program halfsort.cpp:22:1: error: stray '\240' in program halfsort.cpp:22:1: error: stray '\302' in program halfsort.cpp:22:1: error: stray '\240' in program halfsort.cpp:23:1: error: stray '\302' in program { ^ halfsort.cpp:23:1: error: stray '\240' in program halfsort.cpp:23:1: error: stray '\302' in program halfsort.cpp:23:1: error: stray '\240' in program halfsort.cpp:23:1: error: stray '\302' in program halfsort.cpp:23:1: error: stray '\240' in program halfsort.cpp:23:1: error: stray '\302' in program halfsort.cpp:23:1: error: stray '\240' in program halfsort.cpp:24:1: error: stray '\302' in program ok=true; ^ halfsort.cpp:24:1: error: stray '\240' in program halfsort.cpp:24:1: error: stray '\302' in program halfsort.cpp:24:1: error: stray '\240' in program halfsort.cpp:24:1: error: stray '\302' in program halfsort.cpp:24:1: error: stray '\240' in program halfsort.cpp:24:1: error: stray '\302' in program halfsort.cpp:24:1: error: stray '\240' in program halfsort.cpp:24:1: error: stray '\302' in program halfsort.cpp:24:1: error: stray '\240' in program halfsort.cpp:24:1: error: stray '\302' in program halfsort.cpp:24:1: error: stray '\240' in program halfsort.cpp:24:1: error: stray '\302' in program halfsort.cpp:24:1: error: stray '\240' in program halfsort.cpp:24:1: error: stray '\302' in program halfsort.cpp:24:1: error: stray '\240' in program halfsort.cpp:25:1: error: stray '\302' in program for(i=k+1;i<n;i++) ^ halfsort.cpp:25:1: error: stray '\240' in program halfsort.cpp:25:1: error: stray '\302' in program halfsort.cpp:25:1: error: stray '\240' in program halfsort.cpp:25:1: error: stray '\302' in program halfsort.cpp:25:1: error: stray '\240' in program halfsort.cpp:25:1: error: stray '\302' in program halfsort.cpp:25:1: error: stray '\240' in program halfsort.cpp:25:1: error: stray '\302' in program halfsort.cpp:25:1: error: stray '\240' in program halfsort.cpp:25:1: error: stray '\302' in program halfsort.cpp:25:1: error: stray '\240' in program halfsort.cpp:25:1: error: stray '\302' in program halfsort.cpp:25:1: error: stray '\240' in program halfsort.cpp:25:1: error: stray '\302' in program halfsort.cpp:25:1: error: stray '\240' in program halfsort.cpp:26:1: error: stray '\302' in program if(v[i]<v[i+1]) ^ halfsort.cpp:26:1: error: stray '\240' in program halfsort.cpp:26:1: error: stray '\302' in program halfsort.cpp:26:1: error: stray '\240' in program halfsort.cpp:26:1: error: stray '\302' in program halfsort.cpp:26:1: error: stray '\240' in program halfsort.cpp:26:1: error: stray '\302' in program halfsort.cpp:26:1: error: stray '\240' in program halfsort.cpp:26:1: error: stray '\302' in program halfsort.cpp:26:1: error: stray '\240' in program halfsort.cpp:26:1: error: stray '\302' in program halfsort.cpp:26:1: error: stray '\240' in program halfsort.cpp:26:1: error: stray '\302' in program halfsort.cpp:26:1: error: stray '\240' in program halfsort.cpp:26:1: error: stray '\302' in program halfsort.cpp:26:1: error: stray '\240' in program halfsort.cpp:26:1: error: stray '\302' in program halfsort.cpp:26:1: error: stray '\240' in program halfsort.cpp:27:1: error: stray '\302' in program { ^ halfsort.cpp:27:1: error: stray '\240' in program halfsort.cpp:27:1: error: stray '\302' in program halfsort.cpp:27:1: error: stray '\240' in program halfsort.cpp:27:1: error: stray '\302' in program halfsort.cpp:27:1: error: stray '\240' in program halfsort.cpp:27:1: error: stray '\302' in program halfsort.cpp:27:1: error: stray '\240' in program halfsort.cpp:27:1: error: stray '\302' in program halfsort.cpp:27:1: error: stray '\240' in program halfsort.cpp:27:1: error: stray '\302' in program halfsort.cpp:27:1: error: stray '\240' in program halfsort.cpp:27:1: error: stray '\302' in program halfsort.cpp:27:1: error: stray '\240' in program halfsort.cpp:27:1: error: stray '\302' in program halfsort.cpp:27:1: error: stray '\240' in program halfsort.cpp:27:1: error: stray '\302' in program halfsort.cpp:27:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program aux=v[i]; ^ halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:28:1: error: stray '\302' in program halfsort.cpp:28:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program v[i]=v[i+1]; ^ halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:29:1: error: stray '\302' in program halfsort.cpp:29:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program v[i+1]=aux; ^ halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:30:1: error: stray '\302' in program halfsort.cpp:30:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program ok=false; ^ halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:31:1: error: stray '\302' in program halfsort.cpp:31:1: error: stray '\240' in program halfsort.cpp:32:1: error: stray '\302' in program } ^ halfsort.cpp:32:1: error: stray '\240' in program halfsort.cpp:32:1: error: stray '\302' in program halfsort.cpp:32:1: error: stray '\240' in program halfsort.cpp:32:1: error: stray '\302' in program halfsort.cpp:32:1: error: stray '\240' in program halfsort.cpp:32:1: error: stray '\302' in program halfsort.cpp:32:1: error: stray '\240' in program halfsort.cpp:32:1: error: stray '\302' in program halfsort.cpp:32:1: error: stray '\240' in program halfsort.cpp:32:1: error: stray '\302' in program halfsort.cpp:32:1: error: stray '\240' in program halfsort.cpp:32:1: error: stray '\302' in program halfsort.cpp:32:1: error: stray '\240' in program halfsort.cpp:32:1: error: stray '\302' in program halfsort.cpp:32:1: error: stray '\240' in program halfsort.cpp:32:1: error: stray '\302' in program halfsort.cpp:32:1: error: stray '\240' in program halfsort.cpp:33:1: error: stray '\302' in program } while (!ok); ^ halfsort.cpp:33:1: error: stray '\240' in program halfsort.cpp:33:1: error: stray '\302' in program halfsort.cpp:33:1: error: stray '\240' in program halfsort.cpp:33:1: error: stray '\302' in program halfsort.cpp:33:1: error: stray '\240' in program halfsort.cpp:33:1: error: stray '\302' in program halfsort.cpp:33:1: error: stray '\240' in program halfsort.cpp:33:1: error: stray '\302' in program halfsort.cpp:33:1: error: stray '\240' in program halfsort.cpp:33:1: error: stray '\302' in program halfsort.cpp:33:1: error: stray '\240' in program halfsort.cpp:34:1: error: stray '\302' in program for(i=1;i<=n;i++) cout<<v[i]<<" "; ^ halfsort.cpp:34:1: error: stray '\240' in program halfsort.cpp:34:1: error: stray '\302' in program halfsort.cpp:34:1: error: stray '\240' in program halfsort.cpp:34:1: error: stray '\302' in program halfsort.cpp:34:1: error: stray '\240' in program halfsort.cpp:34:1: error: stray '\302' in program halfsort.cpp:34:1: error: stray '\240' in program halfsort.cpp:34:1: error: stray '\302' in program halfsort.cpp:34:1: error: stray '\240' in program halfsort.cpp:35:1: error: stray '\302' in program return 0; ^ halfsort.cpp:35:1: error: stray '\240' in program halfsort.cpp:35:1: error: stray '\302' in program halfsort.cpp:35:1: error: stray '\240' in program halfsort.cpp:35:1: error: stray '\302' in program halfsort.cpp:35:1: error: stray '\240' in program halfsort.cpp:35:1: error: stray '\302' in program halfsort.cpp:35:1: error: stray '\240' in program halfsort.cpp:35:1: error: stray '\302' in program halfsort.cpp:35:1: error: stray '\240' in program halfsort.cpp: In function 'int main()': halfsort.cpp:7:9: error: 'cin' was not declared in this scope cin >> n; ^ halfsort.cpp:34:28: error: 'cout' was not declared in this scope for(i=1;i<=n;i++) cout<<v[i]<<" "; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema HalfSort 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ă.