#2678
FormNr
Se dă un șir de caractere ce conține litere, cifre, semne de punctuație, spații și alte simboluri ASCII. Cifrele din șir formează numere, scrise în baza 10
. Să se determine suma acestor numere.
Problema | FormNr | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #17038801 | Utilizator | |
Fișier | formnr.cpp | Dimensiune | 609 B |
Data încărcării | 29 Septembrie 2019, 12:28 | Scor / rezultat | Eroare de compilare |
formnr.cpp:7:1: error: stray '\302' in program char s[256]; ^ formnr.cpp:7:1: error: stray '\240' in program formnr.cpp:7:1: error: stray '\302' in program formnr.cpp:7:1: error: stray '\240' in program formnr.cpp:7:1: error: stray '\302' in program formnr.cpp:7:1: error: stray '\240' in program formnr.cpp:8:1: error: stray '\302' in program int v[30]={0},i,maxim=-1; ^ formnr.cpp:8:1: error: stray '\240' in program formnr.cpp:8:1: error: stray '\302' in program formnr.cpp:8:1: error: stray '\240' in program formnr.cpp:8:1: error: stray '\302' in program formnr.cpp:8:1: error: stray '\240' in program formnr.cpp:9:1: error: stray '\302' in program cin.get(s,256); ^ formnr.cpp:9:1: error: stray '\240' in program formnr.cpp:9:1: error: stray '\302' in program formnr.cpp:9:1: error: stray '\240' in program formnr.cpp:9:1: error: stray '\302' in program formnr.cpp:9:1: error: stray '\240' in program formnr.cpp:10:1: error: stray '\302' in program for(i=0;i<strlen(s);i++) ^ formnr.cpp:10:1: error: stray '\240' in program formnr.cpp:10:1: error: stray '\302' in program formnr.cpp:10:1: error: stray '\240' in program formnr.cpp:10:1: error: stray '\302' in program formnr.cpp:10:1: error: stray '\240' in program formnr.cpp:11:1: error: stray '\302' in program { ^ formnr.cpp:11:1: error: stray '\240' in program formnr.cpp:11:1: error: stray '\302' in program formnr.cpp:11:1: error: stray '\240' in program formnr.cpp:11:1: error: stray '\302' in program formnr.cpp:11:1: error: stray '\240' in program formnr.cpp:12:1: error: stray '\302' in program if(s[i]>='a' && s[i]<='z'); ^ formnr.cpp:12:1: error: stray '\240' in program formnr.cpp:12:1: error: stray '\302' in program formnr.cpp:12:1: error: stray '\240' in program formnr.cpp:12:1: error: stray '\302' in program formnr.cpp:12:1: error: stray '\240' in program formnr.cpp:12:1: error: stray '\302' in program formnr.cpp:12:1: error: stray '\240' in program formnr.cpp:12:1: error: stray '\302' in program formnr.cpp:12:1: error: stray '\240' in program formnr.cpp:12:1: error: stray '\302' in program formnr.cpp:12:1: error: stray '\240' in program formnr.cpp:12:1: error: stray '\302' in program formnr.cpp:12:1: error: stray '\240' in program formnr.cpp:13:1: error: stray '\302' in program v[(unsigned int)s[i]-97]++; ^ formnr.cpp:13:1: error: stray '\240' in program formnr.cpp:13:1: error: stray '\302' in program formnr.cpp:13:1: error: stray '\240' in program formnr.cpp:13:1: error: stray '\302' in program formnr.cpp:13:1: error: stray '\240' in program formnr.cpp:13:1: error: stray '\302' in program formnr.cpp:13:1: error: stray '\240' in program formnr.cpp:13:1: error: stray '\302' in program formnr.cpp:13:1: error: stray '\240' in program formnr.cpp:13:1: error: stray '\302' in program formnr.cpp:13:1: error: stray '\240' in program formnr.cpp:13:1: error: stray '\302' in program formnr.cpp:13:1: error: stray '\240' in program formnr.cpp:14:1: error: stray '\302' in program } ^ formnr.cpp:14:1: error: stray '\240' in program formnr.cpp:14:1: error: stray '\302' in program formnr.cpp:14:1: error: stray '\240' in program formnr.cpp:14:1: error: stray '\302' in program formnr.cpp:14:1: error: stray '\240' in program formnr.cpp:16:1: error: stray '\302' in program for(i=0;i<27;i++) ^ formnr.cpp:16:1: error: stray '\240' in program formnr.cpp:16:1: error: stray '\302' in program formnr.cpp:16:1: error: stray '\240' in program formnr.cpp:16:1: error: stray '\302' in program formnr.cpp:16:1: error: stray '\240' in program formnr.cpp:17:1: error: stray '\302' in program { ^ formnr.cpp:17:1: error: stray '\240' in program formnr.cpp:17:1: error: stray '\302' in program formnr.cpp:17:1: error: stray '\240' in program formnr.cpp:17:1: error: stray '\302' in program formnr.cpp:17:1: error: stray '\240' in program formnr.cpp:18:1: error: stray '\302' in program if(v[i]>maxim) ^ formnr.cpp:18:1: error: stray '\240' in program formnr.cpp:18:1: error: stray '\302' in program formnr.cpp:18:1: error: stray '\240' in program formnr.cpp:18:1: error: stray '\302' in program formnr.cpp:18:1: error: stray '\240' in program formnr.cpp:18:1: error: stray '\302' in program formnr.cpp:18:1: error: stray '\240' in program formnr.cpp:18:1: error: stray '\302' in program formnr.cpp:18:1: error: stray '\240' in program formnr.cpp:18:1: error: stray '\302' in program formnr.cpp:18:1: error: stray '\240' in program formnr.cpp:18:1: error: stray '\302' in program formnr.cpp:18:1: error: stray '\240' in program formnr.cpp:19:1: error: stray '\302' in program maxim=v[i]; ^ formnr.cpp:19:1: error: stray '\240' in program formnr.cpp:19:1: error: stray '\302' in program formnr.cpp:19:1: error: stray '\240' in program formnr.cpp:19:1: error: stray '\302' in program formnr.cpp:19:1: error: stray '\240' in program formnr.cpp:19:1: error: stray '\302' in program formnr.cpp:19:1: error: stray '\240' in program formnr.cpp:19:1: error: stray '\302' in program formnr.cpp:19:1: error: stray '\240' in program formnr.cpp:19:1: error: stray '\302' in program formnr.cpp:19:1: error: stray '\240' in program formnr.cpp:19:1: error: stray '\302' in program formnr.cpp:19:1: error: stray '\240' in program formnr.cpp:20:1: error: stray '\302' in program } ^ formnr.cpp:20:1: error: stray '\240' in program formnr.cpp:20:1: error: stray '\302' in program formnr.cpp:20:1: error: stray '\240' in program formnr.cpp:20:1: error: stray '\302' in program formnr.cpp:20:1: error: stray '\240' in program formnr.cpp:21:1: error: stray '\302' in program for(i=0;i<27;i++) ^ formnr.cpp:21:1: error: stray '\240' in program formnr.cpp:21:1: error: stray '\302' in program formnr.cpp:21:1: error: stray '\240' in program formnr.cpp:21:1: error: stray '\302' in program formnr.cpp:21:1: error: stray '\240' in program formnr.cpp:22:1: error: stray '\302' in program { ^ formnr.cpp:22:1: error: stray '\240' in program formnr.cpp:22:1: error: stray '\302' in program formnr.cpp:22:1: error: stray '\240' in program formnr.cpp:22:1: error: stray '\302' in program formnr.cpp:22:1: error: stray '\240' in program formnr.cpp:23:1: error: stray '\302' in program if(v[i]==maxim) ^ formnr.cpp:23:1: error: stray '\240' in program formnr.cpp:23:1: error: stray '\302' in program formnr.cpp:23:1: error: stray '\240' in program formnr.cpp:23:1: error: stray '\302' in program formnr.cpp:23:1: error: stray '\240' in program formnr.cpp:23:1: error: stray '\302' in program formnr.cpp:23:1: error: stray '\240' in program formnr.cpp:23:1: error: stray '\302' in program formnr.cpp:23:1: error: stray '\240' in program formnr.cpp:23:1: error: stray '\302' in program formnr.cpp:23:1: error: stray '\240' in program formnr.cpp:23:1: error: stray '\302' in program formnr.cpp:23:1: error: stray '\240' in program formnr.cpp:24:1: error: stray '\302' in program { ^ formnr.cpp:24:1: error: stray '\240' in program formnr.cpp:24:1: error: stray '\302' in program formnr.cpp:24:1: error: stray '\240' in program formnr.cpp:24:1: error: stray '\302' in program formnr.cpp:24:1: error: stray '\240' in program formnr.cpp:24:1: error: stray '\302' in program formnr.cpp:24:1: error: stray '\240' in program formnr.cpp:24:1: error: stray '\302' in program formnr.cpp:24:1: error: stray '\240' in program formnr.cpp:24:1: error: stray '\302' in program formnr.cpp:24:1: error: stray '\240' in program formnr.cpp:24:1: error: stray '\302' in program formnr.cpp:24:1: error: stray '\240' in program formnr.cpp:25:1: error: stray '\302' in program cout<<(unsigned char)(i+97); ^ formnr.cpp:25:1: error: stray '\240' in program formnr.cpp:25:1: error: stray '\302' in program formnr.cpp:25:1: error: stray '\240' in program formnr.cpp:25:1: error: stray '\302' in program formnr.cpp:25:1: error: stray '\240' in program formnr.cpp:25:1: error: stray '\302' in program formnr.cpp:25:1: error: stray '\240' in program formnr.cpp:25:1: error: stray '\302' in program formnr.cpp:25:1: error: stray '\240' in program formnr.cpp:25:1: error: stray '\302' in program formnr.cpp:25:1: error: stray '\240' in program formnr.cpp:25:1: error: stray '\302' in program formnr.cpp:25:1: error: stray '\240' in program formnr.cpp:26:1: error: stray '\302' in program break; ^ formnr.cpp:26:1: error: stray '\240' in program formnr.cpp:26:1: error: stray '\302' in program formnr.cpp:26:1: error: stray '\240' in program formnr.cpp:26:1: error: stray '\302' in program formnr.cpp:26:1: error: stray '\240' in program formnr.cpp:26:1: error: stray '\302' in program formnr.cpp:26:1: error: stray '\240' in program formnr.cpp:26:1: error: stray '\302' in program formnr.cpp:26:1: error: stray '\240' in program formnr.cpp:26:1: error: stray '\302' in program formnr.cpp:26:1: error: stray '\240' in program formnr.cpp:26:1: error: stray '\302' in program formnr.cpp:26:1: error: stray '\240' in program formnr.cpp:27:1: error: stray '\302' in program } ^ formnr.cpp:27:1: error: stray '\240' in program formnr.cpp:27:1: error: stray '\302' in program formnr.cpp:27:1: error: stray '\240' in program formnr.cpp:27:1: error: stray '\302' in program formnr.cpp:27:1: error: stray '\240' in program formnr.cpp:27:1: error: stray '\302' in program formnr.cpp:27:1: error: stray '\240' in program formnr.cpp:27:1: error: stray '\302' in program formnr.cpp:27:1: error: stray '\240' in program formnr.cpp:27:1: error: stray '\302' in program formnr.cpp:27:1: error: stray '\240' in program formnr.cpp:27:1: error: stray '\302' in program formnr.cpp:27:1: error: stray '\240' in program formnr.cpp:28:1: error: stray '\302' in program } ^ formnr.cpp:28:1: error: stray '\240' in program formnr.cpp:28:1: error: stray '\302' in program formnr.cpp:28:1: error: stray '\240' in program formnr.cpp:28:1: error: stray '\302' in program formnr.cpp:28:1: error: stray '\240' in program formnr.cpp:29:1: error: stray '\302' in program return 0; ^ formnr.cpp:29:1: error: stray '\240' in program formnr.cpp:29:1: error: stray '\302' in program formnr.cpp:29:1: error: stray '\240' in program formnr.cpp:29:1: error: stray '\302' in program formnr.cpp:29:1: error: stray '\240' in program formnr.cpp: In function 'int main()': formnr.cpp:10:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<strlen(s);i++) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FormNr 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ă.