#942
cifre23
Se dă un număr natural format din cifrele 2
sau 3
. Aflaţi cifra care apare de cele mai multe ori în scrierea numărului .
Problema | cifre23 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 8 MB
|
Id soluție | #10136313 | Utilizator | |
Fișier | cifre23.cpp | Dimensiune | 473 B |
Data încărcării | 13 August 2018, 18:36 | Scor / rezultat | Eroare de compilare |
cifre23.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ cifre23.cpp:2:1: error: stray '\302' in program using namespace std; ^ cifre23.cpp:2:1: error: stray '\240' in program cifre23.cpp:2:1: error: stray '\302' in program cifre23.cpp:2:1: error: stray '\240' in program cifre23.cpp:3:1: error: stray '\302' in program long long n; ^ cifre23.cpp:3:1: error: stray '\240' in program cifre23.cpp:3:1: error: stray '\302' in program cifre23.cpp:3:1: error: stray '\240' in program cifre23.cpp:4:1: error: stray '\302' in program int nr2,nr3,cif; ^ cifre23.cpp:4:1: error: stray '\240' in program cifre23.cpp:5:1: error: stray '\302' in program int main() ^ cifre23.cpp:5:1: error: stray '\240' in program cifre23.cpp:7:1: error: stray '\302' in program cin>>n; ^ cifre23.cpp:7:1: error: stray '\240' in program cifre23.cpp:7:1: error: stray '\302' in program cifre23.cpp:7:1: error: stray '\240' in program cifre23.cpp:7:1: error: stray '\302' in program cifre23.cpp:7:1: error: stray '\240' in program cifre23.cpp:7:1: error: stray '\302' in program cifre23.cpp:7:1: error: stray '\240' in program cifre23.cpp:8:1: error: stray '\302' in program while(n) ^ cifre23.cpp:8:1: error: stray '\240' in program cifre23.cpp:8:1: error: stray '\302' in program cifre23.cpp:8:1: error: stray '\240' in program cifre23.cpp:8:1: error: stray '\302' in program cifre23.cpp:8:1: error: stray '\240' in program cifre23.cpp:8:1: error: stray '\302' in program cifre23.cpp:8:1: error: stray '\240' in program cifre23.cpp:9:1: error: stray '\302' in program { ^ cifre23.cpp:9:1: error: stray '\240' in program cifre23.cpp:9:1: error: stray '\302' in program cifre23.cpp:9:1: error: stray '\240' in program cifre23.cpp:9:1: error: stray '\302' in program cifre23.cpp:9:1: error: stray '\240' in program cifre23.cpp:9:1: error: stray '\302' in program cifre23.cpp:9:1: error: stray '\240' in program cifre23.cpp:10:1: error: stray '\302' in program cif=n%10; ^ cifre23.cpp:10:1: error: stray '\240' in program cifre23.cpp:10:1: error: stray '\302' in program cifre23.cpp:10:1: error: stray '\240' in program cifre23.cpp:10:1: error: stray '\302' in program cifre23.cpp:10:1: error: stray '\240' in program cifre23.cpp:10:1: error: stray '\302' in program cifre23.cpp:10:1: error: stray '\240' in program cifre23.cpp:10:1: error: stray '\302' in program cifre23.cpp:10:1: error: stray '\240' in program cifre23.cpp:10:1: error: stray '\302' in program cifre23.cpp:10:1: error: stray '\240' in program cifre23.cpp:10:1: error: stray '\302' in program cifre23.cpp:10:1: error: stray '\240' in program cifre23.cpp:10:1: error: stray '\302' in program cifre23.cpp:10:1: error: stray '\240' in program cifre23.cpp:11:1: error: stray '\302' in program if(cif==2) nr2=nr2+1; ^ cifre23.cpp:11:1: error: stray '\240' in program cifre23.cpp:11:1: error: stray '\302' in program cifre23.cpp:11:1: error: stray '\240' in program cifre23.cpp:11:1: error: stray '\302' in program cifre23.cpp:11:1: error: stray '\240' in program cifre23.cpp:11:1: error: stray '\302' in program cifre23.cpp:11:1: error: stray '\240' in program cifre23.cpp:11:1: error: stray '\302' in program cifre23.cpp:11:1: error: stray '\240' in program cifre23.cpp:11:1: error: stray '\302' in program cifre23.cpp:11:1: error: stray '\240' in program cifre23.cpp:11:1: error: stray '\302' in program cifre23.cpp:11:1: error: stray '\240' in program cifre23.cpp:11:1: error: stray '\302' in program cifre23.cpp:11:1: error: stray '\240' in program cifre23.cpp:11:1: error: stray '\302' in program cifre23.cpp:11:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program else nr3=nr3+1; ^ cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:12:1: error: stray '\302' in program cifre23.cpp:12:1: error: stray '\240' in program cifre23.cpp:13:1: error: stray '\302' in program n=n/10; ^ cifre23.cpp:13:1: error: stray '\240' in program cifre23.cpp:13:1: error: stray '\302' in program cifre23.cpp:13:1: error: stray '\240' in program cifre23.cpp:13:1: error: stray '\302' in program cifre23.cpp:13:1: error: stray '\240' in program cifre23.cpp:13:1: error: stray '\302' in program cifre23.cpp:13:1: error: stray '\240' in program cifre23.cpp:13:1: error: stray '\302' in program cifre23.cpp:13:1: error: stray '\240' in program cifre23.cpp:13:1: error: stray '\302' in program cifre23.cpp:13:1: error: stray '\240' in program cifre23.cpp:13:1: error: stray '\302' in program cifre23.cpp:13:1: error: stray '\240' in program cifre23.cpp:13:1: error: stray '\302' in program cifre23.cpp:13:1: error: stray '\240' in program cifre23.cpp:14:1: error: stray '\302' in program } ^ cifre23.cpp:14:1: error: stray '\240' in program cifre23.cpp:14:1: error: stray '\302' in program cifre23.cpp:14:1: error: stray '\240' in program cifre23.cpp:14:1: error: stray '\302' in program cifre23.cpp:14:1: error: stray '\240' in program cifre23.cpp:14:1: error: stray '\302' in program cifre23.cpp:14:1: error: stray '\240' in program cifre23.cpp:15:1: error: stray '\302' in program if(nr2==nr3) cout<<2<<" "<<3; ^ cifre23.cpp:15:1: error: stray '\240' in program cifre23.cpp:15:1: error: stray '\302' in program cifre23.cpp:15:1: error: stray '\240' in program cifre23.cpp:15:1: error: stray '\302' in program cifre23.cpp:15:1: error: stray '\240' in program cifre23.cpp:15:1: error: stray '\302' in program cifre23.cpp:15:1: error: stray '\240' in program cifre23.cpp:15:1: error: stray '\302' in program cifre23.cpp:15:1: error: stray '\240' in program cifre23.cpp:16:1: error: stray '\302' in program else ^ cifre23.cpp:16:1: error: stray '\240' in program cifre23.cpp:16:1: error: stray '\302' in program cifre23.cpp:16:1: error: stray '\240' in program cifre23.cpp:16:1: error: stray '\302' in program cifre23.cpp:16:1: error: stray '\240' in program cifre23.cpp:16:1: error: stray '\302' in program cifre23.cpp:16:1: error: stray '\240' in program cifre23.cpp:16:1: error: stray '\302' in program cifre23.cpp:16:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program if(nr2>nr3) cout<<2; ^ cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:17:1: error: stray '\302' in program cifre23.cpp:17:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program else cout<<3; ^ cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:18:1: error: stray '\302' in program cifre23.cpp:18:1: error: stray '\240' in program cifre23.cpp:19:1: error: stray '\302' in program return 0; ^ cifre23.cpp:19:1: error: stray '\240' in program cifre23.cpp:19:1: error: stray '\302' in program cifre23.cpp:19:1: error: stray '\240' in program cifre23.cpp:19:1: error: stray '\302' in program cifre23.cpp:19:1: error: stray '\240' in program cifre23.cpp:19:1: error: stray '\302' in program cifre23.cpp:19:1: error: stray '\240' in program cifre23.cpp:19:1: error: stray '\302' in program cifre23.cpp:19:1: error: stray '\240' in program cifre23.cpp: In function 'int main()': cifre23.cpp:7:9: error: 'cin' was not declared in this scope cin>>n; ^ cifre23.cpp:15:23: error: 'cout' was not declared in this scope if(nr2==nr3) cout<<2<<" "<<3; ^ cifre23.cpp:17:34: error: 'cout' was not declared in this scope if(nr2>nr3) cout<<2; ^ cifre23.cpp:18:41: error: 'cout' was not declared in this scope else cout<<3; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cifre23 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ă.