#465
OglPP
Se dau 2
numere naturale a b
, a < b
. Determinați câte numere din intervalul [a,b]
sunt pătrate perfecte și au proprietatea că oglinditul lor este pătrat perfect.
Problema | OglPP | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #21672816 | Utilizator | |
Fișier | oglpp.cpp | Dimensiune | 605 B |
Data încărcării | 09 Martie 2020, 12:10 | Scor / rezultat | Eroare de compilare |
oglpp.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ oglpp.cpp:2:1: error: stray '\302' in program using namespace std; ^ oglpp.cpp:2:1: error: stray '\240' in program oglpp.cpp:2:1: error: stray '\302' in program oglpp.cpp:2:1: error: stray '\240' in program oglpp.cpp:3:1: error: stray '\302' in program int ninv, i, a, b, nr, n, k, r; ^ oglpp.cpp:3:1: error: stray '\240' in program oglpp.cpp:3:1: error: stray '\302' in program oglpp.cpp:3:1: error: stray '\240' in program oglpp.cpp:3:1: error: stray '\302' in program oglpp.cpp:3:1: error: stray '\240' in program oglpp.cpp:3:1: error: stray '\302' in program oglpp.cpp:3:1: error: stray '\240' in program oglpp.cpp:3:1: error: stray '\302' in program oglpp.cpp:3:1: error: stray '\240' in program oglpp.cpp:3:1: error: stray '\302' in program oglpp.cpp:3:1: error: stray '\240' in program oglpp.cpp:3:1: error: stray '\302' in program oglpp.cpp:3:1: error: stray '\240' in program oglpp.cpp:3:1: error: stray '\302' in program oglpp.cpp:3:1: error: stray '\240' in program oglpp.cpp:4:1: error: stray '\302' in program int main() ^ oglpp.cpp:4:1: error: stray '\240' in program oglpp.cpp:6:1: error: stray '\302' in program cin >> a >> b; ^ oglpp.cpp:6:1: error: stray '\240' in program oglpp.cpp:6:1: error: stray '\302' in program oglpp.cpp:6:1: error: stray '\240' in program oglpp.cpp:6:1: error: stray '\302' in program oglpp.cpp:6:1: error: stray '\240' in program oglpp.cpp:6:1: error: stray '\302' in program oglpp.cpp:6:1: error: stray '\240' in program oglpp.cpp:6:1: error: stray '\302' in program oglpp.cpp:6:1: error: stray '\240' in program oglpp.cpp:6:1: error: stray '\302' in program oglpp.cpp:6:1: error: stray '\240' in program oglpp.cpp:6:1: error: stray '\302' in program oglpp.cpp:6:1: error: stray '\240' in program oglpp.cpp:6:1: error: stray '\302' in program oglpp.cpp:6:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program for(i = 1; i <= 31623; i ++) ^ oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:7:1: error: stray '\302' in program oglpp.cpp:7:1: error: stray '\240' in program oglpp.cpp:8:1: error: stray '\302' in program { ^ oglpp.cpp:8:1: error: stray '\240' in program oglpp.cpp:8:1: error: stray '\302' in program oglpp.cpp:8:1: error: stray '\240' in program oglpp.cpp:8:1: error: stray '\302' in program oglpp.cpp:8:1: error: stray '\240' in program oglpp.cpp:8:1: error: stray '\302' in program oglpp.cpp:8:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program n = i * i; ^ oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:9:1: error: stray '\302' in program oglpp.cpp:9:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program k = n; ^ oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:10:1: error: stray '\302' in program oglpp.cpp:10:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program ninv = 0; ^ oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:11:1: error: stray '\302' in program oglpp.cpp:11:1: error: stray '\240' in program oglpp.cpp:12:1: error: stray '\302' in program while(n) ^ oglpp.cpp:12:1: error: stray '\240' in program oglpp.cpp:12:1: error: stray '\302' in program oglpp.cpp:12:1: error: stray '\240' in program oglpp.cpp:12:1: error: stray '\302' in program oglpp.cpp:12:1: error: stray '\240' in program oglpp.cpp:12:1: error: stray '\302' in program oglpp.cpp:12:1: error: stray '\240' in program oglpp.cpp:12:1: error: stray '\302' in program oglpp.cpp:12:1: error: stray '\240' in program oglpp.cpp:12:1: error: stray '\302' in program oglpp.cpp:12:1: error: stray '\240' in program oglpp.cpp:12:1: error: stray '\302' in program oglpp.cpp:12:1: error: stray '\240' in program oglpp.cpp:12:1: error: stray '\302' in program oglpp.cpp:12:1: error: stray '\240' in program oglpp.cpp:13:1: error: stray '\302' in program { ^ oglpp.cpp:13:1: error: stray '\240' in program oglpp.cpp:13:1: error: stray '\302' in program oglpp.cpp:13:1: error: stray '\240' in program oglpp.cpp:13:1: error: stray '\302' in program oglpp.cpp:13:1: error: stray '\240' in program oglpp.cpp:13:1: error: stray '\302' in program oglpp.cpp:13:1: error: stray '\240' in program oglpp.cpp:13:1: error: stray '\302' in program oglpp.cpp:13:1: error: stray '\240' in program oglpp.cpp:13:1: error: stray '\302' in program oglpp.cpp:13:1: error: stray '\240' in program oglpp.cpp:13:1: error: stray '\302' in program oglpp.cpp:13:1: error: stray '\240' in program oglpp.cpp:13:1: error: stray '\302' in program oglpp.cpp:13:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program ninv = ninv * 10 + n % 10; ^ oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:14:1: error: stray '\302' in program oglpp.cpp:14:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program n = n / 10; ^ oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:15:1: error: stray '\302' in program oglpp.cpp:15:1: error: stray '\240' in program oglpp.cpp:16:1: error: stray '\302' in program } ^ oglpp.cpp:16:1: error: stray '\240' in program oglpp.cpp:16:1: error: stray '\302' in program oglpp.cpp:16:1: error: stray '\240' in program oglpp.cpp:16:1: error: stray '\302' in program oglpp.cpp:16:1: error: stray '\240' in program oglpp.cpp:16:1: error: stray '\302' in program oglpp.cpp:16:1: error: stray '\240' in program oglpp.cpp:16:1: error: stray '\302' in program oglpp.cpp:16:1: error: stray '\240' in program oglpp.cpp:16:1: error: stray '\302' in program oglpp.cpp:16:1: error: stray '\240' in program oglpp.cpp:16:1: error: stray '\302' in program oglpp.cpp:16:1: error: stray '\240' in program oglpp.cpp:16:1: error: stray '\302' in program oglpp.cpp:16:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program r = sqrt(ninv); ^ oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:17:1: error: stray '\302' in program oglpp.cpp:17:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program if(r * r == ninv && k >= a && k <= b) nr++; ^ oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:18:1: error: stray '\302' in program oglpp.cpp:18:1: error: stray '\240' in program oglpp.cpp:19:1: error: stray '\302' in program } ^ oglpp.cpp:19:1: error: stray '\240' in program oglpp.cpp:19:1: error: stray '\302' in program oglpp.cpp:19:1: error: stray '\240' in program oglpp.cpp:19:1: error: stray '\302' in program oglpp.cpp:19:1: error: stray '\240' in program oglpp.cpp:19:1: error: stray '\302' in program oglpp.cpp:19:1: error: stray '\240' in program oglpp.cpp:20:1: error: stray '\302' in program cout << nr; ^ oglpp.cpp:20:1: error: stray '\240' in program oglpp.cpp:20:1: error: stray '\302' in program oglpp.cpp:20:1: error: stray '\240' in program oglpp.cpp:20:1: error: stray '\302' in program oglpp.cpp:20:1: error: stray '\240' in program oglpp.cpp:20:1: error: stray '\302' in program oglpp.cpp:20:1: error: stray '\240' in program oglpp.cpp:20:1: error: stray '\302' in program oglpp.cpp:20:1: error: stray '\240' in program oglpp.cpp:20:1: error: stray '\302' in program oglpp.cpp:20:1: error: stray '\240' in program oglpp.cpp:21:1: error: stray '\302' in program return 0; ^ oglpp.cpp:21:1: error: stray '\240' in program oglpp.cpp:21:1: error: stray '\302' in program oglpp.cpp:21:1: error: stray '\240' in program oglpp.cpp:21:1: error: stray '\302' in program oglpp.cpp:21:1: error: stray '\240' in program oglpp.cpp:21:1: error: stray '\302' in program oglpp.cpp:21:1: error: stray '\240' in program oglpp.cpp:21:1: error: stray '\302' in program oglpp.cpp:21:1: error: stray '\240' in program oglpp.cpp: In function 'int main()': oglpp.cpp:6:9: error: 'cin' was not declared in this scope cin >> a >> b; ^ oglpp.cpp:17:32: error: 'sqrt' was not declared in this scope r = sqrt(ninv); ^ oglpp.cpp:20:9: error: 'cout' was not declared in this scope cout << nr; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema OglPP 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ă.