#134
SecvK
Se dă un șir cu n
numere naturale și un număr k
. Să se determine o secvență de elemente de lungime k
cu suma elementelor maximă.
Problema | SecvK | Operații I/O |
secvk.in /secvk.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #11072485 | Utilizator | |
Fișier | secvk.cpp | Dimensiune | 1.46 KB |
Data încărcării | 17 Octombrie 2018, 01:41 | Scor / rezultat | Eroare de compilare |
secvk.cpp:11:1: error: stray '\302' in program int i, smax, sum, Begin, End; ^ secvk.cpp:11:1: error: stray '\240' in program secvk.cpp:11:1: error: stray '\302' in program secvk.cpp:11:1: error: stray '\240' in program secvk.cpp:11:1: error: stray '\302' in program secvk.cpp:11:1: error: stray '\240' in program secvk.cpp:12:1: error: stray '\302' in program FILE *fin, *fout; ^ secvk.cpp:12:1: error: stray '\240' in program secvk.cpp:12:1: error: stray '\302' in program secvk.cpp:12:1: error: stray '\240' in program secvk.cpp:12:1: error: stray '\302' in program secvk.cpp:12:1: error: stray '\240' in program secvk.cpp:13:1: error: stray '\302' in program fin = fopen("secvk.in","r"); ^ secvk.cpp:13:1: error: stray '\240' in program secvk.cpp:13:1: error: stray '\302' in program secvk.cpp:13:1: error: stray '\240' in program secvk.cpp:13:1: error: stray '\302' in program secvk.cpp:13:1: error: stray '\240' in program secvk.cpp:14:1: error: stray '\302' in program fout = fopen("secvk.out","w"); ^ secvk.cpp:14:1: error: stray '\240' in program secvk.cpp:14:1: error: stray '\302' in program secvk.cpp:14:1: error: stray '\240' in program secvk.cpp:14:1: error: stray '\302' in program secvk.cpp:14:1: error: stray '\240' in program secvk.cpp:15:1: error: stray '\302' in program fscanf(fin,"%d%d",&n,&k); ^ secvk.cpp:15:1: error: stray '\240' in program secvk.cpp:15:1: error: stray '\302' in program secvk.cpp:15:1: error: stray '\240' in program secvk.cpp:15:1: error: stray '\302' in program secvk.cpp:15:1: error: stray '\240' in program secvk.cpp:16:1: error: stray '\302' in program for(i=1; i<=n; i++) ^ secvk.cpp:16:1: error: stray '\240' in program secvk.cpp:16:1: error: stray '\302' in program secvk.cpp:16:1: error: stray '\240' in program secvk.cpp:16:1: error: stray '\302' in program secvk.cpp:16:1: error: stray '\240' in program secvk.cpp:17:1: error: stray '\302' in program fscanf(fin,"%d",&v[i]); ^ secvk.cpp:17:1: error: stray '\240' in program secvk.cpp:17:1: error: stray '\302' in program secvk.cpp:17:1: error: stray '\240' in program secvk.cpp:17:1: error: stray '\302' in program secvk.cpp:17:1: error: stray '\240' in program secvk.cpp:17:1: error: stray '\302' in program secvk.cpp:17:1: error: stray '\240' in program secvk.cpp:17:1: error: stray '\302' in program secvk.cpp:17:1: error: stray '\240' in program secvk.cpp:17:1: error: stray '\302' in program secvk.cpp:17:1: error: stray '\240' in program secvk.cpp:17:1: error: stray '\302' in program secvk.cpp:17:1: error: stray '\240' in program secvk.cpp:18:1: error: stray '\302' in program smax = -1; ^ secvk.cpp:18:1: error: stray '\240' in program secvk.cpp:18:1: error: stray '\302' in program secvk.cpp:18:1: error: stray '\240' in program secvk.cpp:18:1: error: stray '\302' in program secvk.cpp:18:1: error: stray '\240' in program secvk.cpp:19:1: error: stray '\302' in program sum = 0; ^ secvk.cpp:19:1: error: stray '\240' in program secvk.cpp:19:1: error: stray '\302' in program secvk.cpp:19:1: error: stray '\240' in program secvk.cpp:19:1: error: stray '\302' in program secvk.cpp:19:1: error: stray '\240' in program secvk.cpp:20:1: error: stray '\302' in program Begin = End = 0; ^ secvk.cpp:20:1: error: stray '\240' in program secvk.cpp:20:1: error: stray '\302' in program secvk.cpp:20:1: error: stray '\240' in program secvk.cpp:20:1: error: stray '\302' in program secvk.cpp:20:1: error: stray '\240' in program secvk.cpp:21:1: error: stray '\302' in program for(i=1; i<=n; i++) ^ secvk.cpp:21:1: error: stray '\240' in program secvk.cpp:21:1: error: stray '\302' in program secvk.cpp:21:1: error: stray '\240' in program secvk.cpp:21:1: error: stray '\302' in program secvk.cpp:21:1: error: stray '\240' in program secvk.cpp:22:1: error: stray '\302' in program { ^ secvk.cpp:22:1: error: stray '\240' in program secvk.cpp:22:1: error: stray '\302' in program secvk.cpp:22:1: error: stray '\240' in program secvk.cpp:22:1: error: stray '\302' in program secvk.cpp:22:1: error: stray '\240' in program secvk.cpp:23:1: error: stray '\302' in program if(i <= k) ^ secvk.cpp:23:1: error: stray '\240' in program secvk.cpp:23:1: error: stray '\302' in program secvk.cpp:23:1: error: stray '\240' in program secvk.cpp:23:1: error: stray '\302' in program secvk.cpp:23:1: error: stray '\240' in program secvk.cpp:23:1: error: stray '\302' in program secvk.cpp:23:1: error: stray '\240' in program secvk.cpp:23:1: error: stray '\302' in program secvk.cpp:23:1: error: stray '\240' in program secvk.cpp:23:1: error: stray '\302' in program secvk.cpp:23:1: error: stray '\240' in program secvk.cpp:23:1: error: stray '\302' in program secvk.cpp:23:1: error: stray '\240' in program secvk.cpp:24:1: error: stray '\302' in program { ^ secvk.cpp:24:1: error: stray '\240' in program secvk.cpp:24:1: error: stray '\302' in program secvk.cpp:24:1: error: stray '\240' in program secvk.cpp:24:1: error: stray '\302' in program secvk.cpp:24:1: error: stray '\240' in program secvk.cpp:24:1: error: stray '\302' in program secvk.cpp:24:1: error: stray '\240' in program secvk.cpp:24:1: error: stray '\302' in program secvk.cpp:24:1: error: stray '\240' in program secvk.cpp:24:1: error: stray '\302' in program secvk.cpp:24:1: error: stray '\240' in program secvk.cpp:24:1: error: stray '\302' in program secvk.cpp:24:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program sum += v[i]; ^ secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:25:1: error: stray '\302' in program secvk.cpp:25:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program deck.push_back(v[i]); ^ secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:26:1: error: stray '\302' in program secvk.cpp:26:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program if(i == k && sum > smax) ^ secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:27:1: error: stray '\302' in program secvk.cpp:27:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program { ^ secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:28:1: error: stray '\302' in program secvk.cpp:28:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program smax = sum; ^ secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:29:1: error: stray '\302' in program secvk.cpp:29:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program End = k; ^ secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:30:1: error: stray '\302' in program secvk.cpp:30:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program Begin = End - k + 1; ^ secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:31:1: error: stray '\302' in program secvk.cpp:31:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program } ^ secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:32:1: error: stray '\302' in program secvk.cpp:32:1: error: stray '\240' in program secvk.cpp:33:1: error: stray '\302' in program } ^ secvk.cpp:33:1: error: stray '\240' in program secvk.cpp:33:1: error: stray '\302' in program secvk.cpp:33:1: error: stray '\240' in program secvk.cpp:33:1: error: stray '\302' in program secvk.cpp:33:1: error: stray '\240' in program secvk.cpp:33:1: error: stray '\302' in program secvk.cpp:33:1: error: stray '\240' in program secvk.cpp:33:1: error: stray '\302' in program secvk.cpp:33:1: error: stray '\240' in program secvk.cpp:33:1: error: stray '\302' in program secvk.cpp:33:1: error: stray '\240' in program secvk.cpp:33:1: error: stray '\302' in program secvk.cpp:33:1: error: stray '\240' in program secvk.cpp:34:1: error: stray '\302' in program else ^ secvk.cpp:34:1: error: stray '\240' in program secvk.cpp:34:1: error: stray '\302' in program secvk.cpp:34:1: error: stray '\240' in program secvk.cpp:34:1: error: stray '\302' in program secvk.cpp:34:1: error: stray '\240' in program secvk.cpp:34:1: error: stray '\302' in program secvk.cpp:34:1: error: stray '\240' in program secvk.cpp:34:1: error: stray '\302' in program secvk.cpp:34:1: error: stray '\240' in program secvk.cpp:34:1: error: stray '\302' in program secvk.cpp:34:1: error: stray '\240' in program secvk.cpp:34:1: error: stray '\302' in program secvk.cpp:34:1: error: stray '\240' in program secvk.cpp:35:1: error: stray '\302' in program { ^ secvk.cpp:35:1: error: stray '\240' in program secvk.cpp:35:1: error: stray '\302' in program secvk.cpp:35:1: error: stray '\240' in program secvk.cpp:35:1: error: stray '\302' in program secvk.cpp:35:1: error: stray '\240' in program secvk.cpp:35:1: error: stray '\302' in program secvk.cpp:35:1: error: stray '\240' in program secvk.cpp:35:1: error: stray '\302' in program secvk.cpp:35:1: error: stray '\240' in program secvk.cpp:35:1: error: stray '\302' in program secvk.cpp:35:1: error: stray '\240' in program secvk.cpp:35:1: error: stray '\302' in program secvk.cpp:35:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program sum -= deck.front(); ^ secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:36:1: error: stray '\302' in program secvk.cpp:36:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program sum += v[i]; ^ secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:37:1: error: stray '\302' in program secvk.cpp:37:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program deck.pop_front(); ^ secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:38:1: error: stray '\302' in program secvk.cpp:38:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program deck.push_back(v[i]); ^ secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:39:1: error: stray '\302' in program secvk.cpp:39:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program if(sum > smax) ^ secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:40:1: error: stray '\302' in program secvk.cpp:40:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program { ^ secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:41:1: error: stray '\302' in program secvk.cpp:41:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program smax = sum; ^ secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:42:1: error: stray '\302' in program secvk.cpp:42:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program End = i; ^ secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:43:1: error: stray '\302' in program secvk.cpp:43:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program Begin = End - k + 1; ^ secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:44:1: error: stray '\302' in program secvk.cpp:44:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program } ^ secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:45:1: error: stray '\302' in program secvk.cpp:45:1: error: stray '\240' in program secvk.cpp:46:1: error: stray '\302' in program } ^ secvk.cpp:46:1: error: stray '\240' in program secvk.cpp:46:1: error: stray '\302' in program secvk.cpp:46:1: error: stray '\240' in program secvk.cpp:46:1: error: stray '\302' in program secvk.cpp:46:1: error: stray '\240' in program secvk.cpp:46:1: error: stray '\302' in program secvk.cpp:46:1: error: stray '\240' in program secvk.cpp:46:1: error: stray '\302' in program secvk.cpp:46:1: error: stray '\240' in program secvk.cpp:46:1: error: stray '\302' in program secvk.cpp:46:1: error: stray '\240' in program secvk.cpp:46:1: error: stray '\302' in program secvk.cpp:46:1: error: stray '\240' in program secvk.cpp:47:1: error: stray '\302' in program } ^ secvk.cpp:47:1: error: stray '\240' in program secvk.cpp:47:1: error: stray '\302' in program secvk.cpp:47:1: error: stray '\240' in program secvk.cpp:47:1: error: stray '\302' in program secvk.cpp:47:1: error: stray '\240' in program secvk.cpp:48:1: error: stray '\302' in program for(i=Begin; i<=End; i++) ^ secvk.cpp:48:1: error: stray '\240' in program secvk.cpp:48:1: error: stray '\302' in program secvk.cpp:48:1: error: stray '\240' in program secvk.cpp:48:1: error: stray '\302' in program secvk.cpp:48:1: error: stray '\240' in program secvk.cpp:49:1: error: stray '\302' in program fprintf(fout,"%d ",v[i]); ^ secvk.cpp:49:1: error: stray '\240' in program secvk.cpp:49:1: error: stray '\302' in program secvk.cpp:49:1: error: stray '\240' in program secvk.cpp:49:1: error: stray '\302' in program secvk.cpp:49:1: error: stray '\240' in program secvk.cpp:49:1: error: stray '\302' in program secvk.cpp:49:1: error: stray '\240' in program secvk.cpp:49:1: error: stray '\302' in program secvk.cpp:49:1: error: stray '\240' in program secvk.cpp:49:1: error: stray '\302' in program secvk.cpp:49:1: error: stray '\240' in program secvk.cpp:49:1: error: stray '\302' in program secvk.cpp:49:1: error: stray '\240' in program secvk.cpp:50:1: error: stray '\302' in program fprintf(fout,"\n"); ^ secvk.cpp:50:1: error: stray '\240' in program secvk.cpp:50:1: error: stray '\302' in program secvk.cpp:50:1: error: stray '\240' in program secvk.cpp:50:1: error: stray '\302' in program secvk.cpp:50:1: error: stray '\240' in program secvk.cpp:51:1: error: stray '\302' in program fclose(fout); ^ secvk.cpp:51:1: error: stray '\240' in program secvk.cpp:51:1: error: stray '\302' in program secvk.cpp:51:1: error: stray '\240' in program secvk.cpp:51:1: error: stray '\302' in program secvk.cpp:51:1: error: stray '\240' in program secvk.cpp:52:1: error: stray '\302' in program fclose(fin); ^ secvk.cpp:52:1: error: stray '\240' in program secvk.cpp:52:1: error: stray '\302' in program secvk.cpp:52:1: error: stray '\240' in program secvk.cpp:52:1: error: stray '\302' in program secvk.cpp:52:1: error: stray '\240' in program secvk.cpp:53:1: error: stray '\302' in program return 0; ^ secvk.cpp:53:1: error: stray '\240' in program secvk.cpp:53:1: error: stray '\302' in program secvk.cpp:53:1: error: stray '\240' in program secvk.cpp:53:1: error: stray '\302' in program secvk.cpp:53:1: error: stray '\240' in program secvk.cpp: In function 'int main()': secvk.cpp:15:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d",&n,&k); ^ secvk.cpp:17:38: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&v[i]); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SecvK 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ă.