#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 | #18075383 | Utilizator | |
Fișier | verifprogresie.cpp | Dimensiune | 449 B |
Data încărcării | 28 Octombrie 2019, 15:59 | Scor / rezultat | Eroare de compilare |
verifprogresie.cpp:5:1: error: stray '\302' in program int n,i=0,a[2500],r,ok=1; ^ verifprogresie.cpp:5:1: error: stray '\240' in program verifprogresie.cpp:5:1: error: stray '\302' in program verifprogresie.cpp:5:1: error: stray '\240' in program verifprogresie.cpp:6:1: error: stray '\302' in program cout<<"n="; ^ verifprogresie.cpp:6:1: error: stray '\240' in program verifprogresie.cpp:6:1: error: stray '\302' in program verifprogresie.cpp:6:1: error: stray '\240' in program verifprogresie.cpp:7:1: error: stray '\302' in program cin>>n; ^ verifprogresie.cpp:7:1: error: stray '\240' in program verifprogresie.cpp:7:1: error: stray '\302' in program verifprogresie.cpp:7:1: error: stray '\240' in program verifprogresie.cpp:8:1: error: stray '\302' in program for(i=1;i<=n;i++) { ^ verifprogresie.cpp:8:1: error: stray '\240' in program verifprogresie.cpp:8:1: error: stray '\302' in program verifprogresie.cpp:8:1: error: stray '\240' in program verifprogresie.cpp:8:1: error: stray '\302' in program verifprogresie.cpp:8:1: error: stray '\240' in program verifprogresie.cpp:9:1: error: stray '\302' in program cout<<"a["<<i<<"]=";cin>>a[i]; ^ verifprogresie.cpp:9:1: error: stray '\240' in program verifprogresie.cpp:9:1: error: stray '\302' in program verifprogresie.cpp:9:1: error: stray '\240' in program verifprogresie.cpp:9:1: error: stray '\302' in program verifprogresie.cpp:9:1: error: stray '\240' in program verifprogresie.cpp:9:1: error: stray '\302' in program verifprogresie.cpp:9:1: error: stray '\240' in program verifprogresie.cpp:10:1: error: stray '\302' in program } ^ verifprogresie.cpp:10:1: error: stray '\240' in program verifprogresie.cpp:10:1: error: stray '\302' in program verifprogresie.cpp:10:1: error: stray '\240' in program verifprogresie.cpp:11:1: error: stray '\302' in program r=a[2]-a[1]; ^ verifprogresie.cpp:11:1: error: stray '\240' in program verifprogresie.cpp:11:1: error: stray '\302' in program verifprogresie.cpp:11:1: error: stray '\240' in program verifprogresie.cpp:12:1: error: stray '\302' in program for(i=2;i<=n;i++) ^ verifprogresie.cpp:12:1: error: stray '\240' in program verifprogresie.cpp:12:1: error: stray '\302' in program verifprogresie.cpp:12:1: error: stray '\240' in program verifprogresie.cpp:13:1: error: stray '\302' in program if(a[i]-a[i-1]!=r) ^ verifprogresie.cpp:13:1: error: stray '\240' in program verifprogresie.cpp:13:1: error: stray '\302' in program verifprogresie.cpp:13:1: error: stray '\240' in program verifprogresie.cpp:13:1: error: stray '\302' in program verifprogresie.cpp:13:1: error: stray '\240' in program verifprogresie.cpp:13:1: error: stray '\302' in program verifprogresie.cpp:13:1: error: stray '\240' in program verifprogresie.cpp:14:1: error: stray '\302' in program ok=0; ^ verifprogresie.cpp:14:1: error: stray '\240' in program verifprogresie.cpp:14:1: error: stray '\302' in program verifprogresie.cpp:14:1: error: stray '\240' in program verifprogresie.cpp:14:1: error: stray '\302' in program verifprogresie.cpp:14:1: error: stray '\240' in program verifprogresie.cpp:14:1: error: stray '\302' in program verifprogresie.cpp:14:1: error: stray '\240' in program verifprogresie.cpp:14:1: error: stray '\302' in program verifprogresie.cpp:14:1: error: stray '\240' in program verifprogresie.cpp:14:1: error: stray '\302' in program verifprogresie.cpp:14:1: error: stray '\240' in program verifprogresie.cpp:15:1: error: stray '\302' in program if(ok==1) ^ verifprogresie.cpp:15:1: error: stray '\240' in program verifprogresie.cpp:15:1: error: stray '\302' in program verifprogresie.cpp:15:1: error: stray '\240' in program verifprogresie.cpp:16:1: error: stray '\302' in program cout<<"elem sunt in prog aritmetica"; ^ verifprogresie.cpp:16:1: error: stray '\240' in program verifprogresie.cpp:16:1: error: stray '\302' in program verifprogresie.cpp:16:1: error: stray '\240' in program verifprogresie.cpp:16:1: error: stray '\302' in program verifprogresie.cpp:16:1: error: stray '\240' in program verifprogresie.cpp:16:1: error: stray '\302' in program verifprogresie.cpp:16:1: error: stray '\240' in program verifprogresie.cpp:17:1: error: stray '\302' in program else ^ verifprogresie.cpp:17:1: error: stray '\240' in program verifprogresie.cpp:17:1: error: stray '\302' in program verifprogresie.cpp:17:1: error: stray '\240' in program verifprogresie.cpp:18:1: error: stray '\302' in program cout<<"elem nu sunt in prog aritmetica"; ^ verifprogresie.cpp:18:1: error: stray '\240' in program verifprogresie.cpp:18:1: error: stray '\302' in program verifprogresie.cpp:18:1: error: stray '\240' in program verifprogresie.cpp:18:1: error: stray '\302' in program verifprogresie.cpp:18:1: error: stray '\240' in program verifprogresie.cpp:18:1: error: stray '\302' in program verifprogresie.cpp:18:1: error: stray '\240' in program verifprogresie.cpp:19:1: error: stray '\302' in program return 0; ^ verifprogresie.cpp:19:1: error: stray '\240' in program verifprogresie.cpp:19:1: error: stray '\302' in program verifprogresie.cpp:19:1: 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ă.