#606
Culori
Gigel a primit de la bunicul său un trenuleț electric cu n
vagoane colorate în diverse culori, identificate prin numere întregi. Gigel consideră că trenul este frumos colorat dacă toate vagoanele colorate la fel sunt învecinate. Acum vă roagă să-i spuneți cu câte culori diferite au fost colorate vagoanele și dacă trenul este frumos colorat.
Problema | Culori | Operații I/O |
![]() culori.in /culori.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50548948 | Utilizator | |
Fișier | culori.cpp | Dimensiune | 2.04 KB |
Data încărcării | 14 Aprilie 2024, 19:42 | Scor / rezultat | Eroare de compilare |
culori.cpp:9:1: error: stray '\302' in program int refDigit = x % 10; ^ culori.cpp:9:1: error: stray '\240' in program culori.cpp:9:1: error: stray '\302' in program culori.cpp:9:1: error: stray '\240' in program culori.cpp:10:1: error: stray '\302' in program x = x / 10; ^ culori.cpp:10:1: error: stray '\240' in program culori.cpp:10:1: error: stray '\302' in program culori.cpp:10:1: error: stray '\240' in program culori.cpp:11:1: error: stray '\302' in program while (x > 0) ^ culori.cpp:11:1: error: stray '\240' in program culori.cpp:11:1: error: stray '\302' in program culori.cpp:11:1: error: stray '\240' in program culori.cpp:12:1: error: stray '\302' in program { ^ culori.cpp:12:1: error: stray '\240' in program culori.cpp:12:1: error: stray '\302' in program culori.cpp:12:1: error: stray '\240' in program culori.cpp:13:1: error: stray '\302' in program if (x % 10 != refDigit) return false; ^ culori.cpp:13:1: error: stray '\240' in program culori.cpp:13:1: error: stray '\302' in program culori.cpp:13:1: error: stray '\240' in program culori.cpp:13:1: error: stray '\302' in program culori.cpp:13:1: error: stray '\240' in program culori.cpp:13:1: error: stray '\302' in program culori.cpp:13:1: error: stray '\240' in program culori.cpp:14:1: error: stray '\302' in program x = x / 10; ^ culori.cpp:14:1: error: stray '\240' in program culori.cpp:14:1: error: stray '\302' in program culori.cpp:14:1: error: stray '\240' in program culori.cpp:14:1: error: stray '\302' in program culori.cpp:14:1: error: stray '\240' in program culori.cpp:14:1: error: stray '\302' in program culori.cpp:14:1: error: stray '\240' in program culori.cpp:15:1: error: stray '\302' in program } ^ culori.cpp:15:1: error: stray '\240' in program culori.cpp:15:1: error: stray '\302' in program culori.cpp:15:1: error: stray '\240' in program culori.cpp:16:1: error: stray '\302' in program return true; ^ culori.cpp:16:1: error: stray '\240' in program culori.cpp:16:1: error: stray '\302' in program culori.cpp:16:1: error: stray '\240' in program culori.cpp:23:1: error: stray '\302' in program int cer, k, n, x, Min = 10000, Max = 0, cnt = 0; ^ culori.cpp:23:1: error: stray '\240' in program culori.cpp:23:1: error: stray '\302' in program culori.cpp:23:1: error: stray '\240' in program culori.cpp:24:1: error: stray '\302' in program cin >> cer >> k >> n; ^ culori.cpp:24:1: error: stray '\240' in program culori.cpp:24:1: error: stray '\302' in program culori.cpp:24:1: error: stray '\240' in program culori.cpp:25:1: error: stray '\302' in program if (cer == 1) ^ culori.cpp:25:1: error: stray '\240' in program culori.cpp:25:1: error: stray '\302' in program culori.cpp:25:1: error: stray '\240' in program culori.cpp:26:1: error: stray '\302' in program { ^ culori.cpp:26:1: error: stray '\240' in program culori.cpp:26:1: error: stray '\302' in program culori.cpp:26:1: error: stray '\240' in program culori.cpp:27:1: error: stray '\302' in program for (int i = 1; i <= n; i++) ^ culori.cpp:27:1: error: stray '\240' in program culori.cpp:27:1: error: stray '\302' in program culori.cpp:27:1: error: stray '\240' in program culori.cpp:27:1: error: stray '\302' in program culori.cpp:27:1: error: stray '\240' in program culori.cpp:27:1: error: stray '\302' in program culori.cpp:27:1: error: stray '\240' in program culori.cpp:28:1: error: stray '\302' in program { ^ culori.cpp:28:1: error: stray '\240' in program culori.cpp:28:1: error: stray '\302' in program culori.cpp:28:1: error: stray '\240' in program culori.cpp:28:1: error: stray '\302' in program culori.cpp:28:1: error: stray '\240' in program culori.cpp:28:1: error: stray '\302' in program culori.cpp:28:1: error: stray '\240' in program culori.cpp:29:1: error: stray '\302' in program cin >> x; ^ culori.cpp:29:1: error: stray '\240' in program culori.cpp:29:1: error: stray '\302' in program culori.cpp:29:1: error: stray '\240' in program culori.cpp:29:1: error: stray '\302' in program culori.cpp:29:1: error: stray '\240' in program culori.cpp:29:1: error: stray '\302' in program culori.cpp:29:1: error: stray '\240' in program culori.cpp:29:1: error: stray '\302' in program culori.cpp:29:1: error: stray '\240' in program culori.cpp:29:1: error: stray '\302' in program culori.cpp:29:1: error: stray '\240' in program culori.cpp:30:1: error: stray '\302' in program if (cifreIdentice(x) && x > Max) Max = x; ^ culori.cpp:30:1: error: stray '\240' in program culori.cpp:30:1: error: stray '\302' in program culori.cpp:30:1: error: stray '\240' in program culori.cpp:30:1: error: stray '\302' in program culori.cpp:30:1: error: stray '\240' in program culori.cpp:30:1: error: stray '\302' in program culori.cpp:30:1: error: stray '\240' in program culori.cpp:30:1: error: stray '\302' in program culori.cpp:30:1: error: stray '\240' in program culori.cpp:30:1: error: stray '\302' in program culori.cpp:30:1: error: stray '\240' in program culori.cpp:31:1: error: stray '\302' in program if (cifreIdentice(x) && x < Min) Min = x; ^ culori.cpp:31:1: error: stray '\240' in program culori.cpp:31:1: error: stray '\302' in program culori.cpp:31:1: error: stray '\240' in program culori.cpp:31:1: error: stray '\302' in program culori.cpp:31:1: error: stray '\240' in program culori.cpp:31:1: error: stray '\302' in program culori.cpp:31:1: error: stray '\240' in program culori.cpp:31:1: error: stray '\302' in program culori.cpp:31:1: error: stray '\240' in program culori.cpp:31:1: error: stray '\302' in program culori.cpp:31:1: error: stray '\240' in program culori.cpp:32:1: error: stray '\302' in program } ^ culori.cpp:32:1: error: stray '\240' in program culori.cpp:32:1: error: stray '\302' in program culori.cpp:32:1: error: stray '\240' in program culori.cpp:32:1: error: stray '\302' in program culori.cpp:32:1: error: stray '\240' in program culori.cpp:32:1: error: stray '\302' in program culori.cpp:32:1: error: stray '\240' in program culori.cpp:33:1: error: stray '\302' in program ^ culori.cpp:33:1: error: stray '\240' in program culori.cpp:33:1: error: stray '\302' in program culori.cpp:33:1: error: stray '\240' in program culori.cpp:33:1: error: stray '\302' in program culori.cpp:33:1: error: stray '\240' in program culori.cpp:33:1: error: stray '\302' in program culori.cpp:33:1: error: stray '\240' in program culori.cpp:34:1: error: stray '\302' in program if (Min == 10000 && Max == 0) cout << 1; ^ culori.cpp:34:1: error: stray '\240' in program culori.cpp:34:1: error: stray '\302' in program culori.cpp:34:1: error: stray '\240' in program culori.cpp:34:1: error: stray '\302' in program culori.cpp:34:1: error: stray '\240' in program culori.cpp:34:1: error: stray '\302' in program culori.cpp:34:1: error: stray '\240' in program culori.cpp:35:1: error: stray '\302' in program else cout << Min << " " << Max; ^ culori.cpp:35:1: error: stray '\240' in program culori.cpp:35:1: error: stray '\302' in program culori.cpp:35:1: error: stray '\240' in program culori.cpp:35:1: error: stray '\302' in program culori.cpp:35:1: error: stray '\240' in program culori.cpp:35:1: error: stray '\302' in program culori.cpp:35:1: error: stray '\240' in program culori.cpp:36:1: error: stray '\302' in program } ^ culori.cpp:36:1: error: stray '\240' in program culori.cpp:36:1: error: stray '\302' in program culori.cpp:36:1: error: stray '\240' in program culori.cpp:37:1: error: stray '\302' in program else if (cer == 2) ^ culori.cpp:37:1: error: stray '\240' in program culori.cpp:37:1: error: stray '\302' in program culori.cpp:37:1: error: stray '\240' in program culori.cpp:38:1: error: stray '\302' in program { ^ culori.cpp:38:1: error: stray '\240' in program culori.cpp:38:1: error: stray '\302' in program culori.cpp:38:1: error: stray '\240' in program culori.cpp:39:1: error: stray '\302' in program for (int i = 1; i <= n; i++) ^ culori.cpp:39:1: error: stray '\240' in program culori.cpp:39:1: error: stray '\302' in program culori.cpp:39:1: error: stray '\240' in program culori.cpp:39:1: error: stray '\302' in program culori.cpp:39:1: error: stray '\240' in program culori.cpp:39:1: error: stray '\302' in program culori.cpp:39:1: error: stray '\240' in program culori.cpp:40:1: error: stray '\302' in program { ^ culori.cpp:40:1: error: stray '\240' in program culori.cpp:40:1: error: stray '\302' in program culori.cpp:40:1: error: stray '\240' in program culori.cpp:40:1: error: stray '\302' in program culori.cpp:40:1: error: stray '\240' in program culori.cpp:40:1: error: stray '\302' in program culori.cpp:40:1: error: stray '\240' in program culori.cpp:41:1: error: stray '\302' in program cin >> x; ^ culori.cpp:41:1: error: stray '\240' in program culori.cpp:41:1: error: stray '\302' in program culori.cpp:41:1: error: stray '\240' in program culori.cpp:41:1: error: stray '\302' in program culori.cpp:41:1: error: stray '\240' in program culori.cpp:41:1: error: stray '\302' in program culori.cpp:41:1: error: stray '\240' in program culori.cpp:41:1: error: stray '\302' in program culori.cpp:41:1: error: stray '\240' in program culori.cpp:41:1: error: stray '\302' in program culori.cpp:41:1: error: stray '\240' in program culori.cpp:42:1: error: stray '\302' in program ^ culori.cpp:42:1: error: stray '\240' in program culori.cpp:42:1: error: stray '\302' in program culori.cpp:42:1: error: stray '\240' in program culori.cpp:42:1: error: stray '\302' in program culori.cpp:42:1: error: stray '\240' in program culori.cpp:42:1: error: stray '\302' in program culori.cpp:42:1: error: stray '\240' in program culori.cpp:42:1: error: stray '\302' in program culori.cpp:42:1: error: stray '\240' in program culori.cpp:42:1: error: stray '\302' in program culori.cpp:42:1: error: stray '\240' in program culori.cpp:43:1: error: stray '\302' in program while (x % 2 == 0) ^ culori.cpp:43:1: error: stray '\240' in program culori.cpp:43:1: error: stray '\302' in program culori.cpp:43:1: error: stray '\240' in program culori.cpp:43:1: error: stray '\302' in program culori.cpp:43:1: error: stray '\240' in program culori.cpp:43:1: error: stray '\302' in program culori.cpp:43:1: error: stray '\240' in program culori.cpp:43:1: error: stray '\302' in program culori.cpp:43:1: error: stray '\240' in program culori.cpp:43:1: error: stray '\302' in program culori.cpp:43:1: error: stray '\240' in program culori.cpp:44:1: error: stray '\302' in program { ^ culori.cpp:44:1: error: stray '\240' in program culori.cpp:44:1: error: stray '\302' in program culori.cpp:44:1: error: stray '\240' in program culori.cpp:44:1: error: stray '\302' in program culori.cpp:44:1: error: stray '\240' in program culori.cpp:44:1: error: stray '\302' in program culori.cpp:44:1: error: stray '\240' in program culori.cpp:44:1: error: stray '\302' in program culori.cpp:44:1: error: stray '\240' in program culori.cpp:44:1: error: stray '\302' in program culori.cpp:44:1: error: stray '\240' in program culori.cpp:45:1: error: stray '\302' in program x = x / 2; ^ culori.cpp:45:1: error: stray '\240' in program culori.cpp:45:1: error: stray '\302' in program culori.cpp:45:1: error: stray '\240' in program culori.cpp:45:1: error: stray '\302' in program culori.cpp:45:1: error: stray '\240' in program culori.cpp:45:1: error: stray '\302' in program culori.cpp:45:1: error: stray '\240' in program culori.cpp:45:1: error: stray '\302' in program culori.cpp:45:1: error: stray '\240' in program culori.cpp:45:1: error: stray '\302' in program culori.cpp:45:1: error: stray '\240' in program culori.cpp:45:1: error: stray '\302' in program culori.cpp:45:1: error: stray '\240' in program culori.cpp:45:1: error: stray '\302' in program culori.cpp:45:1: error: stray '\240' in program culori.cpp:46:1: error: stray '\302' in program arr[2]++; ^ culori.cpp:46:1: error: stray '\240' in program culori.cpp:46:1: error: stray '\302' in program culori.cpp:46:1: error: stray '\240' in program culori.cpp:46:1: error: stray '\302' in program culori.cpp:46:1: error: stray '\240' in program culori.cpp:46:1: error: stray '\302' in program culori.cpp:46:1: error: stray '\240' in program culori.cpp:46:1: error: stray '\302' in program culori.cpp:46:1: error: stray '\240' in program culori.cpp:46:1: error: stray '\302' in program culori.cpp:46:1: error: stray '\240' in program culori.cpp:46:1: error: stray '\302' in program culori.cpp:46:1: error: stray '\240' in program culori.cpp:46:1: error: stray '\302' in program culori.cpp:46:1: error: stray '\240' in program culori.cpp:47:1: error: stray '\302' in program } ^ culori.cpp:47:1: error: stray '\240' in program culori.cpp:47:1: error: stray '\302' in program culori.cpp:47:1: error: stray '\240' in program culori.cpp:47:1: error: stray '\302' in program culori.cpp:47:1: error: stray '\240' in program culori.cpp:47:1: error: stray '\302' in program culori.cpp:47:1: error: stray '\240' in program culori.cpp:47:1: error: stray '\302' in program culori.cpp:47:1: error: stray '\240' in program culori.cpp:47:1: error: stray '\302' in program culori.cpp:47:1: error: stray '\240' in program culori.cpp:48:1: error: stray '\302' in program ^ culori.cpp:48:1: error: stray '\240' in program culori.cpp:48:1: error: stray '\302' in program culori.cpp:48:1: error: stray '\240' in program culori.cpp:48:1: error: stray '\302' in program culori.cpp:48:1: error: stray '\240' in program culori.cpp:48:1: error: stray '\302' in program culori.cpp:48:1: error: stray '\240' in program culori.cpp:48:1: error: stray '\302' in program culori.cpp:48:1: error: stray '\240' in program culori.cpp:48:1: error: stray '\302' in program culori.cpp:48:1: error: stray '\240' in program culori.cpp:49:1: error: stray '\302' in program for (int j = 3; j * j <= x; j += 2) ^ culori.cpp:49:1: error: stray '\240' in program culori.cpp:49:1: error: stray '\302' in program culori.cpp:49:1: error: stray '\240' in program culori.cpp:49:1: error: stray '\302' in program culori.cpp:49:1: error: stray '\240' in program culori.cpp:49:1: error: stray '\302' in program culori.cpp:49:1: error: stray '\240' in program culori.cpp:49:1: error: stray '\302' in program culori.cpp:49:1: error: stray '\240' in program culori.cpp:49:1: error: stray '\302' in program culori.cpp:49:1: error: stray '\240' in program culori.cpp:50:1: error: stray '\302' in program { ^ culori.cpp:50:1: error: stray '\240' in program culori.cpp:50:1: error: stray '\302' in program culori.cpp:50:1: error: stray '\240' in program culori.cpp:50:1: error: stray '\302' in program culori.cpp:50:1: error: stray '\240' in program culori.cpp:50:1: error: stray '\302' in program culori.cpp:50:1: error: stray '\240' in program culori.cpp:50:1: error: stray '\302' in program culori.cpp:50:1: error: stray '\240' in program culori.cpp:50:1: error: stray '\302' in program culori.cpp:50:1: error: stray '\240' in program culori.cpp:51:1: error: stray '\302' in program while (x % j == 0) ^ culori.cpp:51:1: error: stray '\240' in program culori.cpp:51:1: error: stray '\302' in program culori.cpp:51:1: error: stray '\240' in program culori.cpp:51:1: error: stray '\302' in program culori.cpp:51:1: error: stray '\240' in program culori.cpp:51:1: error: stray '\302' in program culori.cpp:51:1: error: stray '\240' in program culori.cpp:51:1: error: stray '\302' in program culori.cpp:51:1: error: stray '\240' in program culori.cpp:51:1: error: stray '\302' in program culori.cpp:51:1: error: stray '\240' in program culori.cpp:51:1: error: stray '\302' in program culori.cpp:51:1: error: stray '\240' in program culori.cpp:51:1: error: stray '\302' in program culori.cpp:51:1: error: stray '\240' in program culori.cpp:52:1: error: stray '\302' in program { ^ culori.cpp:52:1: error: stray '\240' in program culori.cpp:52:1: error: stray '\302' in program culori.cpp:52:1: error: stray '\240' in program culori.cpp:52:1: error: stray '\302' in program culori.cpp:52:1: error: stray '\240' in program culori.cpp:52:1: error: stray '\302' in program culori.cpp:52:1: error: stray '\240' in program culori.cpp:52:1: error: stray '\302' in program culori.cpp:52:1: error: stray '\240' in program culori.cpp:52:1: error: stray '\302' in program culori.cpp:52:1: error: stray '\240' in program culori.cpp:52:1: error: stray '\302' in program culori.cpp:52:1: error: stray '\240' in program culori.cpp:52:1: error: stray '\302' in program culori.cpp:52:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program x = x / j; ^ culori.cpp:53:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program culori.cpp:53:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program culori.cpp:53:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program culori.cpp:53:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program culori.cpp:53:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program culori.cpp:53:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program culori.cpp:53:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program culori.cpp:53:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program culori.cpp:53:1: error: stray '\240' in program culori.cpp:53:1: error: stray '\302' in program culori.cpp:53:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program arr[j]++; ^ culori.cpp:54:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program culori.cpp:54:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program culori.cpp:54:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program culori.cpp:54:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program culori.cpp:54:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program culori.cpp:54:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program culori.cpp:54:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program culori.cpp:54:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program culori.cpp:54:1: error: stray '\240' in program culori.cpp:54:1: error: stray '\302' in program culori.cpp:54:1: error: stray '\240' in program culori.cpp:55:1: error: stray '\302' in program } ^ culori.cpp:55:1: error: stray '\240' in program culori.cpp:55:1: error: stray '\302' in program culori.cpp:55:1: error: stray '\240' in program culori.cpp:55:1: error: stray '\302' in program culori.cpp:55:1: error: stray '\240' in program culori.cpp:55:1: error: stray '\302' in program culori.cpp:55:1: error: stray '\240' in program culori.cpp:55:1: error: stray '\302' in program culori.cpp:55:1: error: stray '\240' in program culori.cpp:55:1: error: stray '\302' in program culori.cpp:55:1: error: stray '\240' in program culori.cpp:55:1: error: stray '\302' in program culori.cpp:55:1: error: stray '\240' in program culori.cpp:55:1: error: stray '\302' in program culori.cpp:55:1: error: stray '\240' in program culori.cpp:56:1: error: stray '\302' in program } ^ culori.cpp:56:1: error: stray '\240' in program culori.cpp:56:1: error: stray '\302' in program culori.cpp:56:1: error: stray '\240' in program culori.cpp:56:1: error: stray '\302' in program culori.cpp:56:1: error: stray '\240' in program culori.cpp:56:1: error: stray '\302' in program culori.cpp:56:1: error: stray '\240' in program culori.cpp:56:1: error: stray '\302' in program culori.cpp:56:1: error: stray '\240' in program culori.cpp:56:1: error: stray '\302' in program culori.cpp:56:1: error: stray '\240' in program culori.cpp:57:1: error: stray '\302' in program ^ culori.cpp:57:1: error: stray '\240' in program culori.cpp:57:1: error: stray '\302' in program culori.cpp:57:1: error: stray '\240' in program culori.cpp:57:1: error: stray '\302' in program culori.cpp:57:1: error: stray '\240' in program culori.cpp:57:1: error: stray '\302' in program culori.cpp:57:1: error: stray '\240' in program culori.cpp:57:1: error: stray '\302' in program culori.cpp:57:1: error: stray '\240' in program culori.cpp:57:1: error: stray '\302' in program culori.cpp:57:1: error: stray '\240' in program culori.cpp:58:1: error: stray '\302' in program if (x > 2) arr[x]++; ^ culori.cpp:58:1: error: stray '\240' in program culori.cpp:58:1: error: stray '\302' in program culori.cpp:58:1: error: stray '\240' in program culori.cpp:58:1: error: stray '\302' in program culori.cpp:58:1: error: stray '\240' in program culori.cpp:58:1: error: stray '\302' in program culori.cpp:58:1: error: stray '\240' in program culori.cpp:58:1: error: stray '\302' in program culori.cpp:58:1: error: stray '\240' in program culori.cpp:58:1: error: stray '\302' in program culori.cpp:58:1: error: stray '\240' in program culori.cpp:59:1: error: stray '\302' in program } ^ culori.cpp:59:1: error: stray '\240' in program culori.cpp:59:1: error: stray '\302' in program culori.cpp:59:1: error: stray '\240' in program culori.cpp:59:1: error: stray '\302' in program culori.cpp:59:1: error: stray '\240' in program culori.cpp:59:1: error: stray '\302' in program culori.cpp:59:1: error: stray '\240' in program culori.cpp:60:1: error: stray '\302' in program ^ culori.cpp:60:1: error: stray '\240' in program culori.cpp:60:1: error: stray '\302' in program culori.cpp:60:1: error: stray '\240' in program culori.cpp:60:1: error: stray '\302' in program culori.cpp:60:1: error: stray '\240' in program culori.cpp:60:1: error: stray '\302' in program culori.cpp:60:1: error: stray '\240' in program culori.cpp:61:1: error: stray '\302' in program for (int i = 0; i < 10001; i++) ^ culori.cpp:61:1: error: stray '\240' in program culori.cpp:61:1: error: stray '\302' in program culori.cpp:61:1: error: stray '\240' in program culori.cpp:61:1: error: stray '\302' in program culori.cpp:61:1: error: stray '\240' in program culori.cpp:61:1: error: stray '\302' in program culori.cpp:61:1: error: stray '\240' in program culori.cpp:62:1: error: stray '\302' in program { ^ culori.cpp:62:1: error: stray '\240' in program culori.cpp:62:1: error: stray '\302' in program culori.cpp:62:1: error: stray '\240' in program culori.cpp:62:1: error: stray '\302' in program culori.cpp:62:1: error: stray '\240' in program culori.cpp:62:1: error: stray '\302' in program culori.cpp:62:1: error: stray '\240' in program culori.cpp:63:1: error: stray '\302' in program if (arr[i] > 0 && arr[i] % k != 0) cnt++; ^ culori.cpp:63:1: error: stray '\240' in program culori.cpp:63:1: error: stray '\302' in program culori.cpp:63:1: error: stray '\240' in program culori.cpp:63:1: error: stray '\302' in program culori.cpp:63:1: error: stray '\240' in program culori.cpp:63:1: error: stray '\302' in program culori.cpp:63:1: error: stray '\240' in program culori.cpp:63:1: error: stray '\302' in program culori.cpp:63:1: error: stray '\240' in program culori.cpp:63:1: error: stray '\302' in program culori.cpp:63:1: error: stray '\240' in program culori.cpp:64:1: error: stray '\302' in program } ^ culori.cpp:64:1: error: stray '\240' in program culori.cpp:64:1: error: stray '\302' in program culori.cpp:64:1: error: stray '\240' in program culori.cpp:64:1: error: stray '\302' in program culori.cpp:64:1: error: stray '\240' in program culori.cpp:64:1: error: stray '\302' in program culori.cpp:64:1: error: stray '\240' in program culori.cpp:65:1: error: stray '\302' in program if (cnt == 0) cout << 1 << endl << 2 << " " << k; ^ culori.cpp:65:1: error: stray '\240' in program culori.cpp:65:1: error: stray '\302' in program culori.cpp:65:1: error: stray '\240' in program culori.cpp:65:1: error: stray '\302' in program culori.cpp:65:1: error: stray '\240' in program culori.cpp:65:1: error: stray '\302' in program culori.cpp:65:1: error: stray '\240' in program culori.cpp:66:1: error: stray '\302' in program else ^ culori.cpp:66:1: error: stray '\240' in program culori.cpp:66:1: error: stray '\302' in program culori.cpp:66:1: error: stray '\240' in program culori.cpp:66:1: error: stray '\302' in program culori.cpp:66:1: error: stray '\240' in program culori.cpp:66:1: error: stray '\302' in program culori.cpp:66:1: error: stray '\240' in program culori.cpp:67:1: error: stray '\302' in program { ^ culori.cpp:67:1: error: stray '\240' in program culori.cpp:67:1: error: stray '\302' in program culori.cpp:67:1: error: stray '\240' in program culori.cpp:67:1: error: stray '\302' in program culori.cpp:67:1: error: stray '\240' in program culori.cpp:67:1: error: stray '\302' in program culori.cpp:67:1: error: stray '\240' in program culori.cpp:68:1: error: stray '\302' in program cout << cnt << endl; ^ culori.cpp:68:1: error: stray '\240' in program culori.cpp:68:1: error: stray '\302' in program culori.cpp:68:1: error: stray '\240' in program culori.cpp:68:1: error: stray '\302' in program culori.cpp:68:1: error: stray '\240' in program culori.cpp:68:1: error: stray '\302' in program culori.cpp:68:1: error: stray '\240' in program culori.cpp:68:1: error: stray '\302' in program culori.cpp:68:1: error: stray '\240' in program culori.cpp:68:1: error: stray '\302' in program culori.cpp:68:1: error: stray '\240' in program culori.cpp:69:1: error: stray '\302' in program for (int i = 0; i < 10001; i++) ^ culori.cpp:69:1: error: stray '\240' in program culori.cpp:69:1: error: stray '\302' in program culori.cpp:69:1: error: stray '\240' in program culori.cpp:69:1: error: stray '\302' in program culori.cpp:69:1: error: stray '\240' in program culori.cpp:69:1: error: stray '\302' in program culori.cpp:69:1: error: stray '\240' in program culori.cpp:69:1: error: stray '\302' in program culori.cpp:69:1: error: stray '\240' in program culori.cpp:69:1: error: stray '\302' in program culori.cpp:69:1: error: stray '\240' in program culori.cpp:70:1: error: stray '\302' in program { ^ culori.cpp:70:1: error: stray '\240' in program culori.cpp:70:1: error: stray '\302' in program culori.cpp:70:1: error: stray '\240' in program culori.cpp:70:1: error: stray '\302' in program culori.cpp:70:1: error: stray '\240' in program culori.cpp:70:1: error: stray '\302' in program culori.cpp:70:1: error: stray '\240' in program culori.cpp:70:1: error: stray '\302' in program culori.cpp:70:1: error: stray '\240' in program culori.cpp:70:1: error: stray '\302' in program culori.cpp:70:1: error: stray '\240' in program culori.cpp:71:1: error: stray '\302' in program if (arr[i] > 0 && arr[i] % k != 0) ^ culori.cpp:71:1: error: stray '\240' in program culori.cpp:71:1: error: stray '\302' in program culori.cpp:71:1: error: stray '\240' in program culori.cpp:71:1: error: stray '\302' in program culori.cpp:71:1: error: stray '\240' in program culori.cpp:71:1: error: stray '\302' in program culori.cpp:71:1: error: stray '\240' in program culori.cpp:71:1: error: stray '\302' in program culori.cpp:71:1: error: stray '\240' in program culori.cpp:71:1: error: stray '\302' in program culori.cpp:71:1: error: stray '\240' in program culori.cpp:71:1: error: stray '\302' in program culori.cpp:71:1: error: stray '\240' in program culori.cpp:71:1: error: stray '\302' in program culori.cpp:71:1: error: stray '\240' in program culori.cpp:72:1: error: stray '\302' in program { ^ culori.cpp:72:1: error: stray '\240' in program culori.cpp:72:1: error: stray '\302' in program culori.cpp:72:1: error: stray '\240' in program culori.cpp:72:1: error: stray '\302' in program culori.cpp:72:1: error: stray '\240' in program culori.cpp:72:1: error: stray '\302' in program culori.cpp:72:1: error: stray '\240' in program culori.cpp:72:1: error: stray '\302' in program culori.cpp:72:1: error: stray '\240' in program culori.cpp:72:1: error: stray '\302' in program culori.cpp:72:1: error: stray '\240' in program culori.cpp:72:1: error: stray '\302' in program culori.cpp:72:1: error: stray '\240' in program culori.cpp:72:1: error: stray '\302' in program culori.cpp:72:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program cout << i << " " << k - arr[i] % k << endl; ^ culori.cpp:73:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program culori.cpp:73:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program culori.cpp:73:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program culori.cpp:73:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program culori.cpp:73:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program culori.cpp:73:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program culori.cpp:73:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program culori.cpp:73:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program culori.cpp:73:1: error: stray '\240' in program culori.cpp:73:1: error: stray '\302' in program culori.cpp:73:1: error: stray '\240' in program culori.cpp:74:1: error: stray '\302' in program } ^ culori.cpp:74:1: error: stray '\240' in program culori.cpp:74:1: error: stray '\302' in program culori.cpp:74:1: error: stray '\240' in program culori.cpp:74:1: error: stray '\302' in program culori.cpp:74:1: error: stray '\240' in program culori.cpp:74:1: error: stray '\302' in program culori.cpp:74:1: error: stray '\240' in program culori.cpp:74:1: error: stray '\302' in program culori.cpp:74:1: error: stray '\240' in program culori.cpp:74:1: error: stray '\302' in program culori.cpp:74:1: error: stray '\240' in program culori.cpp:74:1: error: stray '\302' in program culori.cpp:74:1: error: stray '\240' in program culori.cpp:74:1: error: stray '\302' in program culori.cpp:74:1: error: stray '\240' in program culori.cpp:75:1: error: stray '\302' in program } ^ culori.cpp:75:1: error: stray '\240' in program culori.cpp:75:1: error: stray '\302' in program culori.cpp:75:1: error: stray '\240' in program culori.cpp:75:1: error: stray '\302' in program culori.cpp:75:1: error: stray '\240' in program culori.cpp:75:1: error: stray '\302' in program culori.cpp:75:1: error: stray '\240' in program culori.cpp:75:1: error: stray '\302' in program culori.cpp:75:1: error: stray '\240' in program culori.cpp:75:1: error: stray '\302' in program culori.cpp:75:1: error: stray '\240' in program culori.cpp:76:1: error: stray '\302' in program } ^ culori.cpp:76:1: error: stray '\240' in program culori.cpp:76:1: error: stray '\302' in program culori.cpp:76:1: error: stray '\240' in program culori.cpp:76:1: error: stray '\302' in program culori.cpp:76:1: error: stray '\240' in program culori.cpp:76:1: error: stray '\302' in program culori.cpp:76:1: error: stray '\240' in program culori.cpp:77:1: error: stray '\302' in program } ^ culori.cpp:77:1: error: stray '\240' in program culori.cpp:77:1: error: stray '\302' in program culori.cpp:77:1: error: stray '\240' in program culori.cpp:78:1: error: stray '\302' in program return 0; ^ culori.cpp:78:1: error: stray '\240' in program culori.cpp:78:1: error: stray '\302' in program culori.cpp:78:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Culori 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ă.