#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 | #15951530 | Utilizator | |
Fișier | verifprogresie.cpp | Dimensiune | 721 B |
Data încărcării | 23 Mai 2019, 14:28 | Scor / rezultat | Eroare de compilare |
verifprogresie.cpp:15:1: error: stray '\302' in program if (d<0) d=-d; ^ verifprogresie.cpp:15:1: error: stray '\240' in program verifprogresie.cpp:20:2: error: stray '\302' in program { ^ verifprogresie.cpp:20:2: error: stray '\240' in program verifprogresie.cpp:20:2: error: stray '\302' in program verifprogresie.cpp:20:2: error: stray '\240' in program verifprogresie.cpp:20:2: error: stray '\302' in program verifprogresie.cpp:20:2: error: stray '\240' in program verifprogresie.cpp:22:2: error: stray '\302' in program d=v[i]-v[i-1]; ^ verifprogresie.cpp:22:2: error: stray '\240' in program verifprogresie.cpp:22:2: error: stray '\302' in program verifprogresie.cpp:22:2: error: stray '\240' in program verifprogresie.cpp:22:2: error: stray '\302' in program verifprogresie.cpp:22:2: error: stray '\240' in program verifprogresie.cpp:22:2: error: stray '\302' in program verifprogresie.cpp:22:2: error: stray '\240' in program verifprogresie.cpp:22:2: error: stray '\302' in program verifprogresie.cpp:22:2: error: stray '\240' in program verifprogresie.cpp:22:2: error: stray '\302' in program verifprogresie.cpp:22:2: error: stray '\240' in program verifprogresie.cpp:24:2: error: stray '\302' in program if (d<0) d=-d; ^ verifprogresie.cpp:24:2: error: stray '\240' in program verifprogresie.cpp:24:2: error: stray '\302' in program verifprogresie.cpp:24:2: error: stray '\240' in program verifprogresie.cpp:24:2: error: stray '\302' in program verifprogresie.cpp:24:2: error: stray '\240' in program verifprogresie.cpp:24:2: error: stray '\302' in program verifprogresie.cpp:24:2: error: stray '\240' in program verifprogresie.cpp:24:2: error: stray '\302' in program verifprogresie.cpp:24:2: error: stray '\240' in program verifprogresie.cpp:24:2: error: stray '\302' in program verifprogresie.cpp:24:2: error: stray '\240' in program verifprogresie.cpp:26:2: error: stray '\302' in program if (d<ratia) ratia=d; ^ verifprogresie.cpp:26:2: error: stray '\240' in program verifprogresie.cpp:26:2: error: stray '\302' in program verifprogresie.cpp:26:2: error: stray '\240' in program verifprogresie.cpp:26:2: error: stray '\302' in program verifprogresie.cpp:26:2: error: stray '\240' in program verifprogresie.cpp:26:2: error: stray '\302' in program verifprogresie.cpp:26:2: error: stray '\240' in program verifprogresie.cpp:26:2: error: stray '\302' in program verifprogresie.cpp:26:2: error: stray '\240' in program verifprogresie.cpp:26:2: error: stray '\302' in program verifprogresie.cpp:26:2: error: stray '\240' in program verifprogresie.cpp:28:2: error: stray '\302' in program a1=min(a1,v[i]); ^ verifprogresie.cpp:28:2: error: stray '\240' in program verifprogresie.cpp:28:2: error: stray '\302' in program verifprogresie.cpp:28:2: error: stray '\240' in program verifprogresie.cpp:28:2: error: stray '\302' in program verifprogresie.cpp:28:2: error: stray '\240' in program verifprogresie.cpp:28:2: error: stray '\302' in program verifprogresie.cpp:28:2: error: stray '\240' in program verifprogresie.cpp:28:2: error: stray '\302' in program verifprogresie.cpp:28:2: error: stray '\240' in program verifprogresie.cpp:28:2: error: stray '\302' in program verifprogresie.cpp:28:2: error: stray '\240' in program verifprogresie.cpp:30:2: error: stray '\302' in program } ^ verifprogresie.cpp:30:2: error: stray '\240' in program verifprogresie.cpp:30:2: error: stray '\302' in program verifprogresie.cpp:30:2: error: stray '\240' in program verifprogresie.cpp:30:2: error: stray '\302' in program verifprogresie.cpp:30:2: error: stray '\240' in program verifprogresie.cpp:30:2: error: stray '\302' in program verifprogresie.cpp:30:2: error: stray '\240' in program verifprogresie.cpp:32:2: error: stray '\302' in program int este=1; ^ verifprogresie.cpp:32:2: error: stray '\240' in program verifprogresie.cpp:32:2: error: stray '\302' in program verifprogresie.cpp:32:2: error: stray '\240' in program verifprogresie.cpp:32:2: error: stray '\302' in program verifprogresie.cpp:32:2: error: stray '\240' in program verifprogresie.cpp:32:2: error: stray '\302' in program verifprogresie.cpp:32:2: error: stray '\240' in program verifprogresie.cpp:34:2: error: stray '\302' in program for (i=0; i<n; ++i) ^ verifprogresie.cpp:34:2: error: stray '\240' in program verifprogresie.cpp:34:2: error: stray '\302' in program verifprogresie.cpp:34:2: error: stray '\240' in program verifprogresie.cpp:34:2: error: stray '\302' in program verifprogresie.cpp:34:2: error: stray '\240' in program verifprogresie.cpp:34:2: error: stray '\302' in program verifprogresie.cpp:34:2: error: stray '\240' in program verifprogresie.cpp:36:2: error: stray '\302' in program { ^ verifprogresie.cpp:36:2: error: stray '\240' in program verifprogresie.cpp:36:2: error: stray '\302' in program verifprogresie.cpp:36:2: error: stray '\240' in program verifprogresie.cpp:36:2: error: stray '\302' in program verifprogresie.cpp:36:2: error: stray '\240' in program verifprogresie.cpp:36:2: error: stray '\302' in program verifprogresie.cpp:36:2: error: stray '\240' in program verifprogresie.cpp:38:2: error: stray '\302' in program if ((v[i]-a1)%ratia!=0) {este=0; break;} ^ verifprogresie.cpp:38:2: error: stray '\240' in program verifprogresie.cpp:38:2: error: stray '\302' in program verifprogresie.cpp:38:2: error: stray '\240' in program verifprogresie.cpp:38:2: error: stray '\302' in program verifprogresie.cpp:38:2: error: stray '\240' in program verifprogresie.cpp:38:2: error: stray '\302' in program verifprogresie.cpp:38:2: error: stray '\240' in program verifprogresie.cpp:38:2: error: stray '\302' in program verifprogresie.cpp:38:2: error: stray '\240' in program verifprogresie.cpp:38:2: error: stray '\302' in program verifprogresie.cpp:38:2: error: stray '\240' in program verifprogresie.cpp:40:2: error: stray '\302' in program } ^ verifprogresie.cpp:40:2: error: stray '\240' in program verifprogresie.cpp:40:2: error: stray '\302' in program verifprogresie.cpp:40:2: error: stray '\240' in program verifprogresie.cpp:40:2: error: stray '\302' in program verifprogresie.cpp:40:2: error: stray '\240' in program verifprogresie.cpp:40:2: error: stray '\302' in program verifprogresie.cpp:40:2: error: stray '\240' in program verifprogresie.cpp:42:2: error: stray '\302' in program if (este) cout << "DA"; ^ verifprogresie.cpp:42:2: error: stray '\240' in program verifprogresie.cpp:42:2: error: stray '\302' in program verifprogresie.cpp:42:2: error: stray '\240' in program verifprogresie.cpp:42:2: error: stray '\302' in program verifprogresie.cpp:42:2: error: stray '\240' in program verifprogresie.cpp:42:2: error: stray '\302' in program verifprogresie.cpp:42:2: error: stray '\240' in program verifprogresie.cpp:44:2: error: stray '\302' in program else cout << "NU"; ^ verifprogresie.cpp:44:2: error: stray '\240' in program verifprogresie.cpp:44:2: error: stray '\302' in program verifprogresie.cpp:44:2: error: stray '\240' in program verifprogresie.cpp:44:2: error: stray '\302' in program verifprogresie.cpp:44:2: error: stray '\240' in program verifprogresie.cpp:44:2: error: stray '\302' in program verifprogresie.cpp:44:2: error: stray '\240' in program verifprogresie.cpp:46:2: error: stray '\302' in program } ^ verifprogresie.cpp:46:2: error: stray '\240' in program verifprogresie.cpp:46:2: error: stray '\302' in program verifprogresie.cpp:46:2: error: stray '\240' in program verifprogresie.cpp:48:2: error: stray '\302' in program return 0; ^ verifprogresie.cpp:48:2: error: stray '\240' in program verifprogresie.cpp:48:2: error: stray '\302' in program verifprogresie.cpp:48: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ă.