#2912
ntheven
Se dă numărul natural n
. Afișați al n
-lea număr par.
Problema | ntheven | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.01 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #16462094 | Utilizator | |
Fișier | ntheven.cpp | Dimensiune | 1.14 KB |
Data încărcării | 12 August 2019, 12:21 | Scor / rezultat | Eroare de compilare |
ntheven.cpp:13:2: error: stray '\302' in program unsigned long long nr,v[100],i=1,t=0; ^ ntheven.cpp:13:2: error: stray '\240' in program ntheven.cpp:13:2: error: stray '\302' in program ntheven.cpp:13:2: error: stray '\240' in program ntheven.cpp:15:2: error: stray '\302' in program cin >> nr; ^ ntheven.cpp:15:2: error: stray '\240' in program ntheven.cpp:15:2: error: stray '\302' in program ntheven.cpp:15:2: error: stray '\240' in program ntheven.cpp:17:2: error: stray '\302' in program int k; ^ ntheven.cpp:17:2: error: stray '\240' in program ntheven.cpp:17:2: error: stray '\302' in program ntheven.cpp:17:2: error: stray '\240' in program ntheven.cpp:21:2: error: stray '\302' in program while(nr !=0) ^ ntheven.cpp:21:2: error: stray '\240' in program ntheven.cpp:21:2: error: stray '\302' in program ntheven.cpp:21:2: error: stray '\240' in program ntheven.cpp:23:2: error: stray '\302' in program { ^ ntheven.cpp:23:2: error: stray '\240' in program ntheven.cpp:23:2: error: stray '\302' in program ntheven.cpp:23:2: error: stray '\240' in program ntheven.cpp:25:2: error: stray '\302' in program v[i] = nr % 10; ^ ntheven.cpp:25:2: error: stray '\240' in program ntheven.cpp:25:2: error: stray '\302' in program ntheven.cpp:25:2: error: stray '\240' in program ntheven.cpp:25:2: error: stray '\302' in program ntheven.cpp:25:2: error: stray '\240' in program ntheven.cpp:25:2: error: stray '\302' in program ntheven.cpp:25:2: error: stray '\240' in program ntheven.cpp:27:2: error: stray '\302' in program nr = nr / 10; ^ ntheven.cpp:27:2: error: stray '\240' in program ntheven.cpp:27:2: error: stray '\302' in program ntheven.cpp:27:2: error: stray '\240' in program ntheven.cpp:27:2: error: stray '\302' in program ntheven.cpp:27:2: error: stray '\240' in program ntheven.cpp:27:2: error: stray '\302' in program ntheven.cpp:27:2: error: stray '\240' in program ntheven.cpp:29:2: error: stray '\302' in program i++; ^ ntheven.cpp:29:2: error: stray '\240' in program ntheven.cpp:29:2: error: stray '\302' in program ntheven.cpp:29:2: error: stray '\240' in program ntheven.cpp:29:2: error: stray '\302' in program ntheven.cpp:29:2: error: stray '\240' in program ntheven.cpp:29:2: error: stray '\302' in program ntheven.cpp:29:2: error: stray '\240' in program ntheven.cpp:31:2: error: stray '\302' in program } ^ ntheven.cpp:31:2: error: stray '\240' in program ntheven.cpp:31:2: error: stray '\302' in program ntheven.cpp:31:2: error: stray '\240' in program ntheven.cpp:33:2: error: stray '\302' in program for(int k=1; k<=i-1; k++) ^ ntheven.cpp:33:2: error: stray '\240' in program ntheven.cpp:33:2: error: stray '\302' in program ntheven.cpp:33:2: error: stray '\240' in program ntheven.cpp:35:2: error: stray '\302' in program { ^ ntheven.cpp:35:2: error: stray '\240' in program ntheven.cpp:35:2: error: stray '\302' in program ntheven.cpp:35:2: error: stray '\240' in program ntheven.cpp:35:2: error: stray '\302' in program ntheven.cpp:35:2: error: stray '\240' in program ntheven.cpp:35:2: error: stray '\302' in program ntheven.cpp:35:2: error: stray '\240' in program ntheven.cpp:37:2: error: stray '\302' in program nr = v[k]* 2; ^ ntheven.cpp:37:2: error: stray '\240' in program ntheven.cpp:37:2: error: stray '\302' in program ntheven.cpp:37:2: error: stray '\240' in program ntheven.cpp:37:2: error: stray '\302' in program ntheven.cpp:37:2: error: stray '\240' in program ntheven.cpp:37:2: error: stray '\302' in program ntheven.cpp:37:2: error: stray '\240' in program ntheven.cpp:37:2: error: stray '\302' in program ntheven.cpp:37:2: error: stray '\240' in program ntheven.cpp:37:2: error: stray '\302' in program ntheven.cpp:37:2: error: stray '\240' in program ntheven.cpp:39:2: error: stray '\302' in program v[k] = nr % 10 + t; ^ ntheven.cpp:39:2: error: stray '\240' in program ntheven.cpp:39:2: error: stray '\302' in program ntheven.cpp:39:2: error: stray '\240' in program ntheven.cpp:39:2: error: stray '\302' in program ntheven.cpp:39:2: error: stray '\240' in program ntheven.cpp:39:2: error: stray '\302' in program ntheven.cpp:39:2: error: stray '\240' in program ntheven.cpp:39:2: error: stray '\302' in program ntheven.cpp:39:2: error: stray '\240' in program ntheven.cpp:39:2: error: stray '\302' in program ntheven.cpp:39:2: error: stray '\240' in program ntheven.cpp:41:2: error: stray '\302' in program if(nr > 9) ^ ntheven.cpp:41:2: error: stray '\240' in program ntheven.cpp:41:2: error: stray '\302' in program ntheven.cpp:41:2: error: stray '\240' in program ntheven.cpp:41:2: error: stray '\302' in program ntheven.cpp:41:2: error: stray '\240' in program ntheven.cpp:41:2: error: stray '\302' in program ntheven.cpp:41:2: error: stray '\240' in program ntheven.cpp:41:2: error: stray '\302' in program ntheven.cpp:41:2: error: stray '\240' in program ntheven.cpp:41:2: error: stray '\302' in program ntheven.cpp:41:2: error: stray '\240' in program ntheven.cpp:43:2: error: stray '\302' in program t = 1; ^ ntheven.cpp:43:2: error: stray '\240' in program ntheven.cpp:43:2: error: stray '\302' in program ntheven.cpp:43:2: error: stray '\240' in program ntheven.cpp:43:2: error: stray '\302' in program ntheven.cpp:43:2: error: stray '\240' in program ntheven.cpp:43:2: error: stray '\302' in program ntheven.cpp:43:2: error: stray '\240' in program ntheven.cpp:43:2: error: stray '\302' in program ntheven.cpp:43:2: error: stray '\240' in program ntheven.cpp:43:2: error: stray '\302' in program ntheven.cpp:43:2: error: stray '\240' in program ntheven.cpp:43:2: error: stray '\302' in program ntheven.cpp:43:2: error: stray '\240' in program ntheven.cpp:43:2: error: stray '\302' in program ntheven.cpp:43:2: error: stray '\240' in program ntheven.cpp:45:2: error: stray '\302' in program else ^ ntheven.cpp:45:2: error: stray '\240' in program ntheven.cpp:45:2: error: stray '\302' in program ntheven.cpp:45:2: error: stray '\240' in program ntheven.cpp:45:2: error: stray '\302' in program ntheven.cpp:45:2: error: stray '\240' in program ntheven.cpp:45:2: error: stray '\302' in program ntheven.cpp:45:2: error: stray '\240' in program ntheven.cpp:45:2: error: stray '\302' in program ntheven.cpp:45:2: error: stray '\240' in program ntheven.cpp:45:2: error: stray '\302' in program ntheven.cpp:45:2: error: stray '\240' in program ntheven.cpp:47:2: error: stray '\302' in program t = 0; ^ ntheven.cpp:47:2: error: stray '\240' in program ntheven.cpp:47:2: error: stray '\302' in program ntheven.cpp:47:2: error: stray '\240' in program ntheven.cpp:47:2: error: stray '\302' in program ntheven.cpp:47:2: error: stray '\240' in program ntheven.cpp:47:2: error: stray '\302' in program ntheven.cpp:47:2: error: stray '\240' in program ntheven.cpp:47:2: error: stray '\302' in program ntheven.cpp:47:2: error: stray '\240' in program ntheven.cpp:47:2: error: stray '\302' in program ntheven.cpp:47:2: error: stray '\240' in program ntheven.cpp:47:2: error: stray '\302' in program ntheven.cpp:47:2: error: stray '\240' in program ntheven.cpp:47:2: error: stray '\302' in program ntheven.cpp:47:2: error: stray '\240' in program ntheven.cpp:49:2: error: stray '\302' in program } ^ ntheven.cpp:49:2: error: stray '\240' in program ntheven.cpp:49:2: error: stray '\302' in program ntheven.cpp:49:2: error: stray '\240' in program ntheven.cpp:49:2: error: stray '\302' in program ntheven.cpp:49:2: error: stray '\240' in program ntheven.cpp:49:2: error: stray '\302' in program ntheven.cpp:49:2: error: stray '\240' in program ntheven.cpp:51:2: error: stray '\302' in program if(t==1) ^ ntheven.cpp:51:2: error: stray '\240' in program ntheven.cpp:51:2: error: stray '\302' in program ntheven.cpp:51:2: error: stray '\240' in program ntheven.cpp:53:2: error: stray '\302' in program v[i] = t; ^ ntheven.cpp:53:2: error: stray '\240' in program ntheven.cpp:53:2: error: stray '\302' in program ntheven.cpp:53:2: error: stray '\240' in program ntheven.cpp:53:2: error: stray '\302' in program ntheven.cpp:53:2: error: stray '\240' in program ntheven.cpp:53:2: error: stray '\302' in program ntheven.cpp:53:2: error: stray '\240' in program ntheven.cpp:55:2: error: stray '\302' in program else ^ ntheven.cpp:55:2: error: stray '\240' in program ntheven.cpp:55:2: error: stray '\302' in program ntheven.cpp:55:2: error: stray '\240' in program ntheven.cpp:57:2: error: stray '\302' in program i--; ^ ntheven.cpp:57:2: error: stray '\240' in program ntheven.cpp:57:2: error: stray '\302' in program ntheven.cpp:57:2: error: stray '\240' in program ntheven.cpp:57:2: error: stray '\302' in program ntheven.cpp:57:2: error: stray '\240' in program ntheven.cpp:57:2: error: stray '\302' in program ntheven.cpp:57:2: error: stray '\240' in program ntheven.cpp:59:2: error: stray '\302' in program t = 0; ^ ntheven.cpp:59:2: error: stray '\240' in program ntheven.cpp:59:2: error: stray '\302' in program ntheven.cpp:59:2: error: stray '\240' in program ntheven.cpp:89:2: error: stray '\302' in program for(int k=i; k>=1; k--) ^ ntheven.cpp:89:2: error: stray '\240' in program ntheven.cpp:89:2: error: stray '\302' in program ntheven.cpp:89:2: error: stray '\240' in program ntheven.cpp:91:2: error: stray '\302' in program { ^ ntheven.cpp:91:2: error: stray '\240' in program ntheven.cpp:91:2: error: stray '\302' in program ntheven.cpp:91:2: error: stray '\240' in program ntheven.cpp:93:2: error: stray '\302' in program if(v[k]!=0) ^ ntheven.cpp:93:2: error: stray '\240' in program ntheven.cpp:93:2: error: stray '\302' in program ntheven.cpp:93:2: error: stray '\240' in program ntheven.cpp:93:2: error: stray '\302' in program ntheven.cpp:93:2: error: stray '\240' in program ntheven.cpp:93:2: error: stray '\302' in program ntheven.cpp:93:2: error: stray '\240' in program ntheven.cpp:95:2: error: stray '\302' in program t =1 ; ^ ntheven.cpp:95:2: error: stray '\240' in program ntheven.cpp:95:2: error: stray '\302' in program ntheven.cpp:95:2: error: stray '\240' in program ntheven.cpp:95:2: error: stray '\302' in program ntheven.cpp:95:2: error: stray '\240' in program ntheven.cpp:95:2: error: stray '\302' in program ntheven.cpp:95:2: error: stray '\240' in program ntheven.cpp:95:2: error: stray '\302' in program ntheven.cpp:95:2: error: stray '\240' in program ntheven.cpp:95:2: error: stray '\302' in program ntheven.cpp:95:2: error: stray '\240' in program ntheven.cpp:97:2: error: stray '\302' in program if(t == 1) ^ ntheven.cpp:97:2: error: stray '\240' in program ntheven.cpp:97:2: error: stray '\302' in program ntheven.cpp:97:2: error: stray '\240' in program ntheven.cpp:97:2: error: stray '\302' in program ntheven.cpp:97:2: error: stray '\240' in program ntheven.cpp:97:2: error: stray '\302' in program ntheven.cpp:97:2: error: stray '\240' in program ntheven.cpp:99:2: error: stray '\302' in program cout << v[k]; ^ ntheven.cpp:99:2: error: stray '\240' in program ntheven.cpp:99:2: error: stray '\302' in program ntheven.cpp:99:2: error: stray '\240' in program ntheven.cpp:99:2: error: stray '\302' in program ntheven.cpp:99:2: error: stray '\240' in program ntheven.cpp:99:2: error: stray '\302' in program ntheven.cpp:99:2: error: stray '\240' in program ntheven.cpp:99:2: error: stray '\302' in program ntheven.cpp:99:2: error: stray '\240' in program ntheven.cpp:99:2: error: stray '\302' in program ntheven.cpp:99:2: error: stray '\240' in program ntheven.cpp:101:2: error: stray '\302' in program } ^ ntheven.cpp:101:2: error: stray '\240' in program ntheven.cpp:101:2: error: stray '\302' in program ntheven.cpp:101:2: error: stray '\240' in program ntheven.cpp:105:2: error: stray '\302' in program return 0; ^ ntheven.cpp:105:2: error: stray '\240' in program ntheven.cpp:105:2: error: stray '\302' in program ntheven.cpp:105:2: error: stray '\240' in program ntheven.cpp: In function 'int main()': ntheven.cpp:33:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int k=1; k<=i-1; k++) ^ ntheven.cpp:17:11: warning: unused variable 'k' [-Wunused-variable] int k; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ntheven 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ă.