#1573
VerifProgresie
Se dau n
valori naturale. Stabiliți dacă există o progresie aritmetică cu rația număr natural mai mare decât 1
din care să facă parte toate aceste valori.
Problema | VerifProgresie | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #15951533 | Utilizator | |
Fișier | verifprogresie.cpp | Dimensiune | 845 B |
Data încărcării | 23 Mai 2019, 14:28 | Scor / rezultat | Eroare de compilare |
verifprogresie.cpp:11:2: error: stray '\302' in program cin >> n; ^ verifprogresie.cpp:11:2: error: stray '\240' in program verifprogresie.cpp:11:2: error: stray '\302' in program verifprogresie.cpp:11:2: error: stray '\240' in program verifprogresie.cpp:13:2: error: stray '\302' in program for (i=0; i<n; ++i) ^ verifprogresie.cpp:13:2: error: stray '\240' in program verifprogresie.cpp:13:2: error: stray '\302' in program verifprogresie.cpp:13:2: error: stray '\240' in program verifprogresie.cpp:15:2: error: stray '\302' in program cin >> v[i]; ^ verifprogresie.cpp:15:2: error: stray '\240' in program verifprogresie.cpp:15:2: error: stray '\302' in program verifprogresie.cpp:15:2: error: stray '\240' in program verifprogresie.cpp:15:2: error: stray '\302' in program verifprogresie.cpp:15:2: error: stray '\240' in program verifprogresie.cpp:15:2: error: stray '\302' in program verifprogresie.cpp:15:2: error: stray '\240' in program verifprogresie.cpp:17:2: error: stray '\302' in program if (n==1) cout << "DA"; ^ verifprogresie.cpp:17:2: error: stray '\240' in program verifprogresie.cpp:17:2: error: stray '\302' in program verifprogresie.cpp:17:2: error: stray '\240' in program verifprogresie.cpp:19:2: error: stray '\302' in program else ^ verifprogresie.cpp:19:2: error: stray '\240' in program verifprogresie.cpp:19:2: error: stray '\302' in program verifprogresie.cpp:19:2: error: stray '\240' in program verifprogresie.cpp:21:2: error: stray '\302' in program { ^ verifprogresie.cpp:21:2: error: stray '\240' in program verifprogresie.cpp:21:2: error: stray '\302' in program verifprogresie.cpp:21:2: error: stray '\240' in program verifprogresie.cpp:23:2: error: stray '\302' in program a1=v[0]; d=v[1]-v[0]; ^ verifprogresie.cpp:23:2: error: stray '\240' in program verifprogresie.cpp:23:2: error: stray '\302' in program verifprogresie.cpp:23:2: error: stray '\240' in program verifprogresie.cpp:23:2: error: stray '\302' in program verifprogresie.cpp:23:2: error: stray '\240' in program verifprogresie.cpp:23:2: error: stray '\302' in program verifprogresie.cpp:23:2: error: stray '\240' in program verifprogresie.cpp:25:2: error: stray '\302' in program if (d<0) d=-d; ^ verifprogresie.cpp:25:2: error: stray '\240' in program verifprogresie.cpp:25:2: error: stray '\302' in program verifprogresie.cpp:25:2: error: stray '\240' in program verifprogresie.cpp:25:2: error: stray '\302' in program verifprogresie.cpp:25:2: error: stray '\240' in program verifprogresie.cpp:25:2: error: stray '\302' in program verifprogresie.cpp:25:2: error: stray '\240' in program verifprogresie.cpp:27:2: error: stray '\302' in program a1=min(v[0],v[1]); ^ verifprogresie.cpp:27:2: error: stray '\240' in program verifprogresie.cpp:27:2: error: stray '\302' in program verifprogresie.cpp:27:2: error: stray '\240' in program verifprogresie.cpp:27:2: error: stray '\302' in program verifprogresie.cpp:27:2: error: stray '\240' in program verifprogresie.cpp:27:2: error: stray '\302' in program verifprogresie.cpp:27:2: error: stray '\240' in program verifprogresie.cpp:29:2: error: stray '\302' in program int ratia=d; ^ verifprogresie.cpp:29:2: error: stray '\240' in program verifprogresie.cpp:29:2: error: stray '\302' in program verifprogresie.cpp:29:2: error: stray '\240' in program verifprogresie.cpp:29:2: error: stray '\302' in program verifprogresie.cpp:29:2: error: stray '\240' in program verifprogresie.cpp:29:2: error: stray '\302' in program verifprogresie.cpp:29:2: error: stray '\240' in program verifprogresie.cpp:31:2: error: stray '\302' in program for (i=2; i<n; ++i) ^ verifprogresie.cpp:31:2: error: stray '\240' in program verifprogresie.cpp:31:2: error: stray '\302' in program verifprogresie.cpp:31:2: error: stray '\240' in program verifprogresie.cpp:31:2: error: stray '\302' in program verifprogresie.cpp:31:2: error: stray '\240' in program verifprogresie.cpp:31:2: error: stray '\302' in program verifprogresie.cpp:31:2: error: stray '\240' in program verifprogresie.cpp:33:2: error: stray '\302' in program { ^ verifprogresie.cpp:33:2: error: stray '\240' in program verifprogresie.cpp:33:2: error: stray '\302' in program verifprogresie.cpp:33:2: error: stray '\240' in program verifprogresie.cpp:33:2: error: stray '\302' in program verifprogresie.cpp:33:2: error: stray '\240' in program verifprogresie.cpp:33:2: error: stray '\302' in program verifprogresie.cpp:33:2: error: stray '\240' in program verifprogresie.cpp:35:2: error: stray '\302' in program d=v[i]-v[i-1]; ^ verifprogresie.cpp:35:2: error: stray '\240' in program verifprogresie.cpp:35:2: error: stray '\302' in program verifprogresie.cpp:35:2: error: stray '\240' in program verifprogresie.cpp:35:2: error: stray '\302' in program verifprogresie.cpp:35:2: error: stray '\240' in program verifprogresie.cpp:35:2: error: stray '\302' in program verifprogresie.cpp:35:2: error: stray '\240' in program verifprogresie.cpp:35:2: error: stray '\302' in program verifprogresie.cpp:35:2: error: stray '\240' in program verifprogresie.cpp:35:2: error: stray '\302' in program verifprogresie.cpp:35:2: error: stray '\240' in program verifprogresie.cpp:37:2: error: stray '\302' in program if (d<0) d=-d; ^ verifprogresie.cpp:37:2: error: stray '\240' in program verifprogresie.cpp:37:2: error: stray '\302' in program verifprogresie.cpp:37:2: error: stray '\240' in program verifprogresie.cpp:37:2: error: stray '\302' in program verifprogresie.cpp:37:2: error: stray '\240' in program verifprogresie.cpp:37:2: error: stray '\302' in program verifprogresie.cpp:37:2: error: stray '\240' in program verifprogresie.cpp:37:2: error: stray '\302' in program verifprogresie.cpp:37:2: error: stray '\240' in program verifprogresie.cpp:37:2: error: stray '\302' in program verifprogresie.cpp:37:2: error: stray '\240' in program verifprogresie.cpp:39:2: error: stray '\302' in program if (d<ratia) ratia=d; ^ verifprogresie.cpp:39:2: error: stray '\240' in program verifprogresie.cpp:39:2: error: stray '\302' in program verifprogresie.cpp:39:2: error: stray '\240' in program verifprogresie.cpp:39:2: error: stray '\302' in program verifprogresie.cpp:39:2: error: stray '\240' in program verifprogresie.cpp:39:2: error: stray '\302' in program verifprogresie.cpp:39:2: error: stray '\240' in program verifprogresie.cpp:39:2: error: stray '\302' in program verifprogresie.cpp:39:2: error: stray '\240' in program verifprogresie.cpp:39:2: error: stray '\302' in program verifprogresie.cpp:39:2: error: stray '\240' in program verifprogresie.cpp:41:2: error: stray '\302' in program a1=min(a1,v[i]); ^ verifprogresie.cpp:41:2: error: stray '\240' in program verifprogresie.cpp:41:2: error: stray '\302' in program verifprogresie.cpp:41:2: error: stray '\240' in program verifprogresie.cpp:41:2: error: stray '\302' in program verifprogresie.cpp:41:2: error: stray '\240' in program verifprogresie.cpp:41:2: error: stray '\302' in program verifprogresie.cpp:41:2: error: stray '\240' in program verifprogresie.cpp:41:2: error: stray '\302' in program verifprogresie.cpp:41:2: error: stray '\240' in program verifprogresie.cpp:41:2: error: stray '\302' in program verifprogresie.cpp:41:2: error: stray '\240' in program verifprogresie.cpp:43:2: error: stray '\302' in program } ^ verifprogresie.cpp:43:2: error: stray '\240' in program verifprogresie.cpp:43:2: error: stray '\302' in program verifprogresie.cpp:43:2: error: stray '\240' in program verifprogresie.cpp:43:2: error: stray '\302' in program verifprogresie.cpp:43:2: error: stray '\240' in program verifprogresie.cpp:43:2: error: stray '\302' in program verifprogresie.cpp:43:2: error: stray '\240' in program verifprogresie.cpp:45:2: error: stray '\302' in program int este=1; ^ verifprogresie.cpp:45:2: error: stray '\240' in program verifprogresie.cpp:45:2: error: stray '\302' in program verifprogresie.cpp:45:2: error: stray '\240' in program verifprogresie.cpp:45:2: error: stray '\302' in program verifprogresie.cpp:45:2: error: stray '\240' in program verifprogresie.cpp:45:2: error: stray '\302' in program verifprogresie.cpp:45:2: error: stray '\240' in program verifprogresie.cpp:47:2: error: stray '\302' in program for (i=0; i<n; ++i) ^ verifprogresie.cpp:47:2: error: stray '\240' in program verifprogresie.cpp:47:2: error: stray '\302' in program verifprogresie.cpp:47:2: error: stray '\240' in program verifprogresie.cpp:47:2: error: stray '\302' in program verifprogresie.cpp:47:2: error: stray '\240' in program verifprogresie.cpp:47:2: error: stray '\302' in program verifprogresie.cpp:47:2: error: stray '\240' in program verifprogresie.cpp:49:2: error: stray '\302' in program { ^ verifprogresie.cpp:49:2: error: stray '\240' in program verifprogresie.cpp:49:2: error: stray '\302' in program verifprogresie.cpp:49:2: error: stray '\240' in program verifprogresie.cpp:49:2: error: stray '\302' in program verifprogresie.cpp:49:2: error: stray '\240' in program verifprogresie.cpp:49:2: error: stray '\302' in program verifprogresie.cpp:49:2: error: stray '\240' in program verifprogresie.cpp:51:2: error: stray '\302' in program if ((v[i]-a1)%ratia!=0) {este=0; break;} ^ verifprogresie.cpp:51:2: error: stray '\240' in program verifprogresie.cpp:51:2: error: stray '\302' in program verifprogresie.cpp:51:2: error: stray '\240' in program verifprogresie.cpp:51:2: error: stray '\302' in program verifprogresie.cpp:51:2: error: stray '\240' in program verifprogresie.cpp:51:2: error: stray '\302' in program verifprogresie.cpp:51:2: error: stray '\240' in program verifprogresie.cpp:51:2: error: stray '\302' in program verifprogresie.cpp:51:2: error: stray '\240' in program verifprogresie.cpp:51:2: error: stray '\302' in program verifprogresie.cpp:51:2: error: stray '\240' in program verifprogresie.cpp:53:2: error: stray '\302' in program } ^ verifprogresie.cpp:53:2: error: stray '\240' in program verifprogresie.cpp:53:2: error: stray '\302' in program verifprogresie.cpp:53:2: error: stray '\240' in program verifprogresie.cpp:53:2: error: stray '\302' in program verifprogresie.cpp:53:2: error: stray '\240' in program verifprogresie.cpp:53:2: error: stray '\302' in program verifprogresie.cpp:53:2: error: stray '\240' in program verifprogresie.cpp:55:2: error: stray '\302' in program if (este) cout << "DA"; ^ verifprogresie.cpp:55:2: error: stray '\240' in program verifprogresie.cpp:55:2: error: stray '\302' in program verifprogresie.cpp:55:2: error: stray '\240' in program verifprogresie.cpp:55:2: error: stray '\302' in program verifprogresie.cpp:55:2: error: stray '\240' in program verifprogresie.cpp:55:2: error: stray '\302' in program verifprogresie.cpp:55:2: error: stray '\240' in program verifprogresie.cpp:57:2: error: stray '\302' in program else cout << "NU"; ^ verifprogresie.cpp:57:2: error: stray '\240' in program verifprogresie.cpp:57:2: error: stray '\302' in program verifprogresie.cpp:57:2: error: stray '\240' in program verifprogresie.cpp:57:2: error: stray '\302' in program verifprogresie.cpp:57:2: error: stray '\240' in program verifprogresie.cpp:57:2: error: stray '\302' in program verifprogresie.cpp:57:2: error: stray '\240' in program verifprogresie.cpp:59:2: error: stray '\302' in program } ^ verifprogresie.cpp:59:2: error: stray '\240' in program verifprogresie.cpp:59:2: error: stray '\302' in program verifprogresie.cpp:59:2: error: stray '\240' in program verifprogresie.cpp:61:2: error: stray '\302' in program return 0; ^ verifprogresie.cpp:61:2: error: stray '\240' in program verifprogresie.cpp:61:2: error: stray '\302' in program verifprogresie.cpp:61:2: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema VerifProgresie 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ă.