#3170
Plata3
Se consideră n
tipuri de bancnote, cu valorile v[1] v[2] ... v[n]
, ordonate strict crescător. Se cere să se determine o modalitate de a plăti integral o sumă dată S
cu bancnotele disponibile, știind că se pot folosi oricâte bancnote de orice tip.
Problema | Plata3 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53769233 | Utilizator | |
Fișier | plata3.cpp | Dimensiune | 2.16 KB |
Data încărcării | 11 Noiembrie 2024, 12:06 | Scor / rezultat | Eroare de compilare |
plata3.cpp:12:1: error: stray '\302' in program int i,j,aux; ^ plata3.cpp:12:1: error: stray '\240' in program plata3.cpp:12:1: error: stray '\302' in program plata3.cpp:12:1: error: stray '\240' in program plata3.cpp:13:1: error: stray '\302' in program for(i=1;i<n;i++) ^ plata3.cpp:13:1: error: stray '\240' in program plata3.cpp:13:1: error: stray '\302' in program plata3.cpp:13:1: error: stray '\240' in program plata3.cpp:14:1: error: stray '\302' in program for(j=i+1;j<=n;j++) ^ plata3.cpp:14:1: error: stray '\240' in program plata3.cpp:14:1: error: stray '\302' in program plata3.cpp:14:1: error: stray '\240' in program plata3.cpp:14:1: error: stray '\302' in program plata3.cpp:14:1: error: stray '\240' in program plata3.cpp:14:1: error: stray '\302' in program plata3.cpp:14:1: error: stray '\240' in program plata3.cpp:15:1: error: stray '\302' in program if(v[i]<v[j]) ^ plata3.cpp:15:1: error: stray '\240' in program plata3.cpp:15:1: error: stray '\302' in program plata3.cpp:15:1: error: stray '\240' in program plata3.cpp:15:1: error: stray '\302' in program plata3.cpp:15:1: error: stray '\240' in program plata3.cpp:15:1: error: stray '\302' in program plata3.cpp:15:1: error: stray '\240' in program plata3.cpp:15:1: error: stray '\302' in program plata3.cpp:15:1: error: stray '\240' in program plata3.cpp:15:1: error: stray '\302' in program plata3.cpp:15:1: error: stray '\240' in program plata3.cpp:16:1: error: stray '\302' in program { ^ plata3.cpp:16:1: error: stray '\240' in program plata3.cpp:16:1: error: stray '\302' in program plata3.cpp:16:1: error: stray '\240' in program plata3.cpp:16:1: error: stray '\302' in program plata3.cpp:16:1: error: stray '\240' in program plata3.cpp:16:1: error: stray '\302' in program plata3.cpp:16:1: error: stray '\240' in program plata3.cpp:16:1: error: stray '\302' in program plata3.cpp:16:1: error: stray '\240' in program plata3.cpp:16:1: error: stray '\302' in program plata3.cpp:16:1: error: stray '\240' in program plata3.cpp:17:1: error: stray '\302' in program aux=v[i]; ^ plata3.cpp:17:1: error: stray '\240' in program plata3.cpp:17:1: error: stray '\302' in program plata3.cpp:17:1: error: stray '\240' in program plata3.cpp:17:1: error: stray '\302' in program plata3.cpp:17:1: error: stray '\240' in program plata3.cpp:17:1: error: stray '\302' in program plata3.cpp:17:1: error: stray '\240' in program plata3.cpp:17:1: error: stray '\302' in program plata3.cpp:17:1: error: stray '\240' in program plata3.cpp:17:1: error: stray '\302' in program plata3.cpp:17:1: error: stray '\240' in program plata3.cpp:17:1: error: stray '\302' in program plata3.cpp:17:1: error: stray '\240' in program plata3.cpp:17:1: error: stray '\302' in program plata3.cpp:17:1: error: stray '\240' in program plata3.cpp:18:1: error: stray '\302' in program v[i]=v[j]; ^ plata3.cpp:18:1: error: stray '\240' in program plata3.cpp:18:1: error: stray '\302' in program plata3.cpp:18:1: error: stray '\240' in program plata3.cpp:18:1: error: stray '\302' in program plata3.cpp:18:1: error: stray '\240' in program plata3.cpp:18:1: error: stray '\302' in program plata3.cpp:18:1: error: stray '\240' in program plata3.cpp:18:1: error: stray '\302' in program plata3.cpp:18:1: error: stray '\240' in program plata3.cpp:18:1: error: stray '\302' in program plata3.cpp:18:1: error: stray '\240' in program plata3.cpp:18:1: error: stray '\302' in program plata3.cpp:18:1: error: stray '\240' in program plata3.cpp:18:1: error: stray '\302' in program plata3.cpp:18:1: error: stray '\240' in program plata3.cpp:19:1: error: stray '\302' in program v[j]=aux; ^ plata3.cpp:19:1: error: stray '\240' in program plata3.cpp:19:1: error: stray '\302' in program plata3.cpp:19:1: error: stray '\240' in program plata3.cpp:19:1: error: stray '\302' in program plata3.cpp:19:1: error: stray '\240' in program plata3.cpp:19:1: error: stray '\302' in program plata3.cpp:19:1: error: stray '\240' in program plata3.cpp:19:1: error: stray '\302' in program plata3.cpp:19:1: error: stray '\240' in program plata3.cpp:19:1: error: stray '\302' in program plata3.cpp:19:1: error: stray '\240' in program plata3.cpp:19:1: error: stray '\302' in program plata3.cpp:19:1: error: stray '\240' in program plata3.cpp:19:1: error: stray '\302' in program plata3.cpp:19:1: error: stray '\240' in program plata3.cpp:20:1: error: stray '\302' in program } ^ plata3.cpp:20:1: error: stray '\240' in program plata3.cpp:20:1: error: stray '\302' in program plata3.cpp:20:1: error: stray '\240' in program plata3.cpp:20:1: error: stray '\302' in program plata3.cpp:20:1: error: stray '\240' in program plata3.cpp:20:1: error: stray '\302' in program plata3.cpp:20:1: error: stray '\240' in program plata3.cpp:20:1: error: stray '\302' in program plata3.cpp:20:1: error: stray '\240' in program plata3.cpp:20:1: error: stray '\302' in program plata3.cpp:20:1: error: stray '\240' in program plata3.cpp:25:1: error: stray '\302' in program int i; ^ plata3.cpp:25:1: error: stray '\240' in program plata3.cpp:25:1: error: stray '\302' in program plata3.cpp:25:1: error: stray '\240' in program plata3.cpp:26:1: error: stray '\302' in program ok=1; ^ plata3.cpp:26:1: error: stray '\240' in program plata3.cpp:26:1: error: stray '\302' in program plata3.cpp:26:1: error: stray '\240' in program plata3.cpp:27:1: error: stray '\302' in program g<<nr<<'\n'; ^ plata3.cpp:27:1: error: stray '\240' in program plata3.cpp:27:1: error: stray '\302' in program plata3.cpp:27:1: error: stray '\240' in program plata3.cpp:28:1: error: stray '\302' in program for(i=1;i<=k;i++) g<<a[i]<<" "<<v[i]<<'\n'; ^ plata3.cpp:28:1: error: stray '\240' in program plata3.cpp:28:1: error: stray '\302' in program plata3.cpp:28:1: error: stray '\240' in program plata3.cpp:29:1: error: stray '\302' in program exit(0); ^ plata3.cpp:29:1: error: stray '\240' in program plata3.cpp:29:1: error: stray '\302' in program plata3.cpp:29:1: error: stray '\240' in program plata3.cpp:34:1: error: stray '\302' in program int i; ^ plata3.cpp:34:1: error: stray '\240' in program plata3.cpp:34:1: error: stray '\302' in program plata3.cpp:34:1: error: stray '\240' in program plata3.cpp:35:1: error: stray '\302' in program for(i=s/v[k];i>=0;i--) ^ plata3.cpp:35:1: error: stray '\240' in program plata3.cpp:35:1: error: stray '\302' in program plata3.cpp:35:1: error: stray '\240' in program plata3.cpp:36:1: error: stray '\302' in program { ^ plata3.cpp:36:1: error: stray '\240' in program plata3.cpp:36:1: error: stray '\302' in program plata3.cpp:36:1: error: stray '\240' in program plata3.cpp:37:1: error: stray '\302' in program a[k]=i; ^ plata3.cpp:37:1: error: stray '\240' in program plata3.cpp:37:1: error: stray '\302' in program plata3.cpp:37:1: error: stray '\240' in program plata3.cpp:37:1: error: stray '\302' in program plata3.cpp:37:1: error: stray '\240' in program plata3.cpp:37:1: error: stray '\302' in program plata3.cpp:37:1: error: stray '\240' in program plata3.cpp:38:1: error: stray '\302' in program s-=a[k]*v[k]; ^ plata3.cpp:38:1: error: stray '\240' in program plata3.cpp:38:1: error: stray '\302' in program plata3.cpp:38:1: error: stray '\240' in program plata3.cpp:38:1: error: stray '\302' in program plata3.cpp:38:1: error: stray '\240' in program plata3.cpp:38:1: error: stray '\302' in program plata3.cpp:38:1: error: stray '\240' in program plata3.cpp:39:1: error: stray '\302' in program nr+=a[k]; ^ plata3.cpp:39:1: error: stray '\240' in program plata3.cpp:39:1: error: stray '\302' in program plata3.cpp:39:1: error: stray '\240' in program plata3.cpp:39:1: error: stray '\302' in program plata3.cpp:39:1: error: stray '\240' in program plata3.cpp:39:1: error: stray '\302' in program plata3.cpp:39:1: error: stray '\240' in program plata3.cpp:40:1: error: stray '\302' in program ^ plata3.cpp:40:1: error: stray '\240' in program plata3.cpp:40:1: error: stray '\302' in program plata3.cpp:40:1: error: stray '\240' in program plata3.cpp:40:1: error: stray '\302' in program plata3.cpp:40:1: error: stray '\240' in program plata3.cpp:40:1: error: stray '\302' in program plata3.cpp:40:1: error: stray '\240' in program plata3.cpp:41:1: error: stray '\302' in program if(s>=0) ^ plata3.cpp:41:1: error: stray '\240' in program plata3.cpp:41:1: error: stray '\302' in program plata3.cpp:41:1: error: stray '\240' in program plata3.cpp:41:1: error: stray '\302' in program plata3.cpp:41:1: error: stray '\240' in program plata3.cpp:41:1: error: stray '\302' in program plata3.cpp:41:1: error: stray '\240' in program plata3.cpp:42:1: error: stray '\302' in program if(s==0 && k==n) afis(k); ^ plata3.cpp:42:1: error: stray '\240' in program plata3.cpp:42:1: error: stray '\302' in program plata3.cpp:42:1: error: stray '\240' in program plata3.cpp:42:1: error: stray '\302' in program plata3.cpp:42:1: error: stray '\240' in program plata3.cpp:42:1: error: stray '\302' in program plata3.cpp:42:1: error: stray '\240' in program plata3.cpp:42:1: error: stray '\302' in program plata3.cpp:42:1: error: stray '\240' in program plata3.cpp:42:1: error: stray '\302' in program plata3.cpp:42:1: error: stray '\240' in program plata3.cpp:43:1: error: stray '\302' in program else bkt(k+1); ^ plata3.cpp:43:1: error: stray '\240' in program plata3.cpp:43:1: error: stray '\302' in program plata3.cpp:43:1: error: stray '\240' in program plata3.cpp:43:1: error: stray '\302' in program plata3.cpp:43:1: error: stray '\240' in program plata3.cpp:43:1: error: stray '\302' in program plata3.cpp:43:1: error: stray '\240' in program plata3.cpp:43:1: error: stray '\302' in program plata3.cpp:43:1: error: stray '\240' in program plata3.cpp:43:1: error: stray '\302' in program plata3.cpp:43:1: error: stray '\240' in program plata3.cpp:44:1: error: stray '\302' in program ^ plata3.cpp:44:1: error: stray '\240' in program plata3.cpp:44:1: error: stray '\302' in program plata3.cpp:44:1: error: stray '\240' in program plata3.cpp:44:1: error: stray '\302' in program plata3.cpp:44:1: error: stray '\240' in program plata3.cpp:44:1: error: stray '\302' in program plata3.cpp:44:1: error: stray '\240' in program plata3.cpp:44:1: error: stray '\302' in program plata3.cpp:44:1: error: stray '\240' in program plata3.cpp:44:1: error: stray '\302' in program plata3.cpp:44:1: error: stray '\240' in program plata3.cpp:45:1: error: stray '\302' in program nr-=a[i]; ^ plata3.cpp:45:1: error: stray '\240' in program plata3.cpp:45:1: error: stray '\302' in program plata3.cpp:45:1: error: stray '\240' in program plata3.cpp:45:1: error: stray '\302' in program plata3.cpp:45:1: error: stray '\240' in program plata3.cpp:45:1: error: stray '\302' in program plata3.cpp:45:1: error: stray '\240' in program plata3.cpp:46:1: error: stray '\302' in program s+=a[k]*v[k]; ^ plata3.cpp:46:1: error: stray '\240' in program plata3.cpp:46:1: error: stray '\302' in program plata3.cpp:46:1: error: stray '\240' in program plata3.cpp:46:1: error: stray '\302' in program plata3.cpp:46:1: error: stray '\240' in program plata3.cpp:46:1: error: stray '\302' in program plata3.cpp:46:1: error: stray '\240' in program plata3.cpp:47:1: error: stray '\302' in program } ^ plata3.cpp:47:1: error: stray '\240' in program plata3.cpp:47:1: error: stray '\302' in program plata3.cpp:47:1: error: stray '\240' in program plata3.cpp:52:1: error: stray '\302' in program f>>n>>s; ^ plata3.cpp:52:1: error: stray '\240' in program plata3.cpp:52:1: error: stray '\302' in program plata3.cpp:52:1: error: stray '\240' in program plata3.cpp:53:1: error: stray '\302' in program for(i=1;i<=n;i++) f>>v[i]; ^ plata3.cpp:53:1: error: stray '\240' in program plata3.cpp:53:1: error: stray '\302' in program plata3.cpp:53:1: error: stray '\240' in program plata3.cpp:54:1: error: stray '\302' in program ^ plata3.cpp:54:1: error: stray '\240' in program plata3.cpp:54:1: error: stray '\302' in program plata3.cpp:54:1: error: stray '\240' in program plata3.cpp:55:1: error: stray '\302' in program sortare(); ^ plata3.cpp:55:1: error: stray '\240' in program plata3.cpp:55:1: error: stray '\302' in program plata3.cpp:55:1: error: stray '\240' in program plata3.cpp:56:1: error: stray '\302' in program ^ plata3.cpp:56:1: error: stray '\240' in program plata3.cpp:56:1: error: stray '\302' in program plata3.cpp:56:1: error: stray '\240' in program plata3.cpp:57:1: error: stray '\302' in program bkt(1); ^ plata3.cpp:57:1: error: stray '\240' in program plata3.cpp:57:1: error: stray '\302' in program plata3.cpp:57:1: error: stray '\240' in program plata3.cpp:58:1: error: stray '\302' in program if(!ok) g<<"Nu exista solutie"; ^ plata3.cpp:58:1: error: stray '\240' in program plata3.cpp:58:1: error: stray '\302' in program plata3.cpp:58:1: error: stray '\240' in program plata3.cpp:59:1: error: stray '\302' in program ^ plata3.cpp:59:1: error: stray '\240' in program plata3.cpp:59:1: error: stray '\302' in program plata3.cpp:59:1: error: stray '\240' in program plata3.cpp:60:1: error: stray '\302' in program f.close(); ^ plata3.cpp:60:1: error: stray '\240' in program plata3.cpp:60:1: error: stray '\302' in program plata3.cpp:60:1: error: stray '\240' in program plata3.cpp:61:1: error: stray '\302' in program g.close(); ^ plata3.cpp:61:1: error: stray '\240' in program plata3.cpp:61:1: error: stray '\302' in program plata3.cpp:61:1: error: stray '\240' in program plata3.cpp:62:1: error: stray '\302' in program return 0; ^ plata3.cpp:62:1: error: stray '\240' in program plata3.cpp:62:1: error: stray '\302' in program plata3.cpp:62:1: error: stray '\240' in program plata3.cpp:64:1: error: stray '\302' in program IV) #include <iostream> ^ plata3.cpp:64:1: error: stray '\240' in program plata3.cpp:64:6: error: stray '#' in program IV) #include <iostream> ^ plata3.cpp:75:1: error: stray '\302' in program int i,j,aux; ^ plata3.cpp:75:1: error: stray '\240' in program plata3.cpp:75:1: error: stray '\302' in program plata3.cpp:75:1: error: stray '\240' in program plata3.cpp:76:1: error: stray '\302' in program for(i=1;i<n;i++) ^ plata3.cpp:76:1: error: stray '\240' in program plata3.cpp:76:1: error: stray '\302' in program plata3.cpp:76:1: error: stray '\240' in program plata3.cpp:77:1: error: stray '\302' in program for(j=i+1;j<=n;j++) ^ plata3.cpp:77:1: error: stray '\240' in program plata3.cpp:77:1: error: stray '\302' in program plata3.cpp:77:1: error: stray '\240' in program plata3.cpp:77:1: error: stray '\302' in program plata3.cpp:77:1: error: stray '\240' in program plata3.cpp:77:1: error: stray '\302' in program plata3.cpp:77:1: error: stray '\240' in program plata3.cpp:78:1: error: stray '\302' in program if(v[i]<v[j]) ^ plata3.cpp:78:1: error: stray '\240' in program plata3.cpp:78:1: error: stray '\302' in program plata3.cpp:78:1: error: stray '\240' in program plata3.cpp:78:1: error: stray '\302' in program plata3.cpp:78:1: error: stray '\240' in program plata3.cpp:78:1: error: stray '\302' in program plata3.cpp:78:1: error: stray '\240' in program plata3.cpp:78:1: error: stray '\302' in program plata3.cpp:78:1: error: stray '\240' in program plata3.cpp:78:1: error: stray '\302' in program plata3.cpp:78:1: error: stray '\240' in program plata3.cpp:79:1: error: stray '\302' in program { ^ plata3.cpp:79:1: error: stray '\240' in program plata3.cpp:79:1: error: stray '\302' in program plata3.cpp:79:1: error: stray '\240' in program plata3.cpp:79:1: error: stray '\302' in program plata3.cpp:79:1: error: stray '\240' in program plata3.cpp:79:1: error: stray '\302' in program plata3.cpp:79:1: error: stray '\240' in program plata3.cpp:79:1: error: stray '\302' in program plata3.cpp:79:1: error: stray '\240' in program plata3.cpp:79:1: error: stray '\302' in program plata3.cpp:79:1: error: stray '\240' in program plata3.cpp:80:1: error: stray '\302' in program aux=v[i]; ^ plata3.cpp:80:1: error: stray '\240' in program plata3.cpp:80:1: error: stray '\302' in program plata3.cpp:80:1: error: stray '\240' in program plata3.cpp:80:1: error: stray '\302' in program plata3.cpp:80:1: error: stray '\240' in program plata3.cpp:80:1: error: stray '\302' in program plata3.cpp:80:1: error: stray '\240' in program plata3.cpp:80:1: error: stray '\302' in program plata3.cpp:80:1: error: stray '\240' in program plata3.cpp:80:1: error: stray '\302' in program plata3.cpp:80:1: error: stray '\240' in program plata3.cpp:80:1: error: stray '\302' in program plata3.cpp:80:1: error: stray '\240' in program plata3.cpp:80:1: error: stray '\302' in program plata3.cpp:80:1: error: stray '\240' in program plata3.cpp:81:1: error: stray '\302' in program v[i]=v[j]; ^ plata3.cpp:81:1: error: stray '\240' in program plata3.cpp:81:1: error: stray '\302' in program plata3.cpp:81:1: error: stray '\240' in program plata3.cpp:81:1: error: stray '\302' in program plata3.cpp:81:1: error: stray '\240' in program plata3.cpp:81:1: error: stray '\302' in program plata3.cpp:81:1: error: stray '\240' in program plata3.cpp:81:1: error: stray '\302' in program plata3.cpp:81:1: error: stray '\240' in program plata3.cpp:81:1: error: stray '\302' in program plata3.cpp:81:1: error: stray '\240' in program plata3.cpp:81:1: error: stray '\302' in program plata3.cpp:81:1: error: stray '\240' in program plata3.cpp:81:1: error: stray '\302' in program plata3.cpp:81:1: error: stray '\240' in program plata3.cpp:82:1: error: stray '\302' in program v[j]=aux; ^ plata3.cpp:82:1: error: stray '\240' in program plata3.cpp:82:1: error: stray '\302' in program plata3.cpp:82:1: error: stray '\240' in program plata3.cpp:82:1: error: stray '\302' in program plata3.cpp:82:1: error: stray '\240' in program plata3.cpp:82:1: error: stray '\302' in program plata3.cpp:82:1: error: stray '\240' in program plata3.cpp:82:1: error: stray '\302' in program plata3.cpp:82:1: error: stray '\240' in program plata3.cpp:82:1: error: stray '\302' in program plata3.cpp:82:1: error: stray '\240' in program plata3.cpp:82:1: error: stray '\302' in program plata3.cpp:82:1: error: stray '\240' in program plata3.cpp:82:1: error: stray '\302' in program plata3.cpp:82:1: error: stray '\240' in program plata3.cpp:83:1: error: stray '\302' in program } ^ plata3.cpp:83:1: error: stray '\240' in program plata3.cpp:83:1: error: stray '\302' in program plata3.cpp:83:1: error: stray '\240' in program plata3.cpp:83:1: error: stray '\302' in program plata3.cpp:83:1: error: stray '\240' in program plata3.cpp:83:1: error: stray '\302' in program plata3.cpp:83:1: error: stray '\240' in program plata3.cpp:83:1: error: stray '\302' in program plata3.cpp:83:1: error: stray '\240' in program plata3.cpp:83:1: error: stray '\302' in program plata3.cpp:83:1: error: stray '\240' in program plata3.cpp:88:1: error: stray '\302' in program int i; ^ plata3.cpp:88:1: error: stray '\240' in program plata3.cpp:88:1: error: stray '\302' in program plata3.cpp:88:1: error: stray '\240' in program plata3.cpp:89:1: error: stray '\302' in program ok=1; ^ plata3.cpp:89:1: error: stray '\240' in program plata3.cpp:89:1: error: stray '\302' in program plata3.cpp:89:1: error: stray '\240' in program plata3.cpp:90:1: error: stray '\302' in program g<<nr<<'\n'; ^ plata3.cpp:90:1: error: stray '\240' in program plata3.cpp:90:1: error: stray '\302' in program plata3.cpp:90:1: error: stray '\240' in program plata3.cpp:91:1: error: stray '\302' in program for(i=1;i<=k;i++) g<<x[i]<<" "<<v[i]<<'\n'; ^ plata3.cpp:91:1: error: stray '\240' in program plata3.cpp:91:1: error: stray '\302' in program plata3.cpp:91:1: error: stray '\240' in program plata3.cpp:92:1: error: stray '\302' in program exit(0); ^ plata3.cpp:92:1: error: stray '\240' in program plata3.cpp:92:1: error: stray '\302' in program plata3.cpp:92:1: error: stray '\240' in program plata3.cpp:97:1: error: stray '\302' in program int i; ^ plata3.cpp:97:1: error: stray '\240' in program plata3.cpp:97:1: error: stray '\302' in program plata3.cpp:97:1: error: stray '\240' in program plata3.cpp:98:1: error: stray '\302' in program for(i=s/v[k];i>=0;i--) ^ plata3.cpp:98:1: error: stray '\240' in program plata3.cpp:98:1: error: stray '\302' in program plata3.cpp:98:1: error: stray '\240' in program plata3.cpp:99:1: error: stray '\302' in program { ^ plata3.cpp:99:1: error: stray '\240' in program plata3.cpp:99:1: error: stray '\302' in program plata3.cpp:99:1: error: stray '\240' in program plata3.cpp:100:1: error: stray '\302' in program x[k]=i; ^ plata3.cpp:100:1: error: stray '\240' in program plata3.cpp:100:1: error: stray '\302' in program plata3.cpp:100:1: error: stray '\240' in program plata3.cpp:100:1: error: stray '\302' in program plata3.cpp:100:1: error: stray '\240' in program plata3.cpp:100:1: error: stray '\302' in program plata3.cpp:100:1: error: stray '\240' in program plata3.cpp:101:1: error: stray '\302' in program s0+=x[k]*v[k]; ^ plata3.cpp:101:1: error: stray '\240' in program plata3.cpp:101:1: error: stray '\302' in program plata3.cpp:101:1: error: stray '\240' in program plata3.cpp:101:1: error: stray '\302' in program plata3.cpp:101:1: error: stray '\240' in program plata3.cpp:101:1: error: stray '\302' in program plata3.cpp:101:1: error: stray '\240' in program plata3.cpp:102:1: error: stray '\302' in program nr+=x[k]; ^ plata3.cpp:102:1: error: stray '\240' in program plata3.cpp:102:1: error: stray '\302' in program plata3.cpp:102:1: error: stray '\240' in program plata3.cpp:102:1: error: stray '\302' in program plata3.cpp:102:1: error: stray '\240' in program plata3.cpp:102:1: error: stray '\302' in program plata3.cpp:102:1: error: stray '\240' in program plata3.cpp:103:1: error: stray '\302' in program if(s0<=s) ^ plata3.cpp:103:1: error: stray '\240' in program plata3.cpp:103:1: error: stray '\302' in program plata3.cpp:103:1: error: stray '\240' in program plata3.cpp:103:1: error: stray '\302' in program plata3.cpp:103:1: error: stray '\240' in program plata3.cpp:103:1: error: stray '\302' in program plata3.cpp:103:1: error: stray '\240' in program plata3.cpp:104:1: error: stray '\302' in program if(s0==s && k==n) afis(k); ^ plata3.cpp:104:1: error: stray '\240' in program plata3.cpp:104:1: error: stray '\302' in program plata3.cpp:104:1: error: stray '\240' in program plata3.cpp:104:1: error: stray '\302' in program plata3.cpp:104:1: error: stray '\240' in program plata3.cpp:104:1: error: stray '\302' in program plata3.cpp:104:1: error: stray '\240' in program plata3.cpp:104:1: error: stray '\302' in program plata3.cpp:104:1: error: stray '\240' in program plata3.cpp:104:1: error: stray '\302' in program plata3.cpp:104:1: error: stray '\240' in program plata3.cpp:105:1: error: stray '\302' in program else if(k<n) bkt(k+1); ^ plata3.cpp:105:1: error: stray '\240' in program plata3.cpp:105:1: error: stray '\302' in program plata3.cpp:105:1: error: stray '\240' in program plata3.cpp:105:1: error: stray '\302' in program plata3.cpp:105:1: error: stray '\240' in program plata3.cpp:105:1: error: stray '\302' in program plata3.cpp:105:1: error: stray '\240' in program plata3.cpp:105:1: error: stray '\302' in program plata3.cpp:105:1: error: stray '\240' in program plata3.cpp:105:1: error: stray '\302' in program plata3.cpp:105:1: error: stray '\240' in program plata3.cpp:106:1: error: stray '\302' in program s0-=x[k]*v[k]; ^ plata3.cpp:106:1: error: stray '\240' in program plata3.cpp:106:1: error: stray '\302' in program plata3.cpp:106:1: error: stray '\240' in program plata3.cpp:106:1: error: stray '\302' in program plata3.cpp:106:1: error: stray '\240' in program plata3.cpp:106:1: error: stray '\302' in program plata3.cpp:106:1: error: stray '\240' in program plata3.cpp:107:1: error: stray '\302' in program nr-=x[k]; ^ plata3.cpp:107:1: error: stray '\240' in program plata3.cpp:107:1: error: stray '\302' in program plata3.cpp:107:1: error: stray '\240' in program plata3.cpp:107:1: error: stray '\302' in program plata3.cpp:107:1: error: stray '\240' in program plata3.cpp:107:1: error: stray '\302' in program plata3.cpp:107:1: error: stray '\240' in program plata3.cpp:108:1: error: stray '\302' in program } ^ plata3.cpp:108:1: error: stray '\240' in program plata3.cpp:108:1: error: stray '\302' in program plata3.cpp:108:1: error: stray '\240' in program plata3.cpp:113:1: error: stray '\302' in program f>>n>>s; ^ plata3.cpp:113:1: error: stray '\240' in program plata3.cpp:113:1: error: stray '\302' in program plata3.cpp:113:1: error: stray '\240' in program plata3.cpp:114:1: error: stray '\302' in program for(i=1;i<=n;i++) f>>v[i]; ^ plata3.cpp:114:1: error: stray '\240' in program plata3.cpp:114:1: error: stray '\302' in program plata3.cpp:114:1: error: stray '\240' in program plata3.cpp:115:1: error: stray '\302' in program ^ plata3.cpp:115:1: error: stray '\240' in program plata3.cpp:115:1: error: stray '\302' in program plata3.cpp:115:1: error: stray '\240' in program plata3.cpp:116:1: error: stray '\302' in program sortare(); ^ plata3.cpp:116:1: error: stray '\240' in program plata3.cpp:116:1: error: stray '\302' in program plata3.cpp:116:1: error: stray '\240' in program plata3.cpp:117:1: error: stray '\302' in program ^ plata3.cpp:117:1: error: stray '\240' in program plata3.cpp:117:1: error: stray '\302' in program plata3.cpp:117:1: error: stray '\240' in program plata3.cpp:118:1: error: stray '\302' in program bkt(1); ^ plata3.cpp:118:1: error: stray '\240' in program plata3.cpp:118:1: error: stray '\302' in program plata3.cpp:118:1: error: stray '\240' in program plata3.cpp:119:1: error: stray '\302' in program if(!ok) g<<"Nu exista solutie"; ^ plata3.cpp:119:1: error: stray '\240' in program plata3.cpp:119:1: error: stray '\302' in program plata3.cpp:119:1: error: stray '\240' in program plata3.cpp:121:1: error: stray '\302' in program return 0; ^ plata3.cpp:121:1: error: stray '\240' in program plata3.cpp:121:1: error: stray '\302' in program plata3.cpp:121:1: error: stray '\240' in program plata3.cpp: In function 'void bkt(int)': plata3.cpp:41:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(s>=0) ^ plata3.cpp: At global scope: plata3.cpp:64:1: error: 'IV' does not name a type IV) #include <iostream> ^ plata3.cpp:68:11: error: redefinition of 'std::ifstream f' ifstream f("plata.in"); ^ plata3.cpp:5:10: error: 'std::ifstream f' previously declared here ifstream f("plata.in"); ^ plata3.cpp:69:11: error: redefinition of 'std::ofstream g' ofstream g("plata.txt"); ^ plata3.cpp:6:10: error: 'std::ofstream g' previously declared here ofstream g("plata.txt"); ^ plata3.cpp:71:5: error: redefinition of 'int i' int i,v[101],x[101],n,s,nr,ok,s0; ^ plata3.cpp:8:5: error: 'int i' previously declared here int i,v[101],a[101],n,s,nr,ok,s0; ^ plata3.cpp:71:12: error: redefinition of 'int v [101]' int i,v[101],x[101],n,s,nr,ok,s0; ^ plata3.cpp:8:7: error: 'int v [101]' previously declared here int i,v[101],a[101],n,s,nr,ok,s0; ^ plata3.cpp:71:21: error: redefinition of 'int n' int i,v[101],x[101],n,s,nr,ok,s0; ^ plata3.cpp:8:21: error: 'int n' previously declared here int i,v[101],a[101],n,s,nr,ok,s0; ^ plata3.cpp:71:23: error: redefinition of 'int s' int i,v[101],x[101],n,s,nr,ok,s0; ^ plata3.cpp:8:23: error: 'int s' previously declared here int i,v[101],a[101],n,s,nr,ok,s0; ^ plata3.cpp:71:25: error: redefinition of 'int nr' int i,v[101],x[101],n,s,nr,ok,s0; ^ plata3.cpp:8:25: error: 'int nr' previously declared here int i,v[101],a[101],n,s,nr,ok,s0; ^ plata3.cpp:71:28: error: redefinition of 'int ok' int i,v[101],x[101],n,s,nr,ok,s0; ^ plata3.cpp:8:28: error: 'int ok' previously declared here int i,v[101],a[101],n,s,nr,ok,s0; ^ plata3.cpp:71:31: error: redefinition of 'int s0' int i,v[101],x[101],n,s,nr,ok,s0; ^ plata3.cpp:8:31: error: 'int s0' previously declared here int i,v[101],a[101],n,s,nr,ok,s0; ^ plata3.cpp: In function 'void sortare()': plata3.cpp:73:6: error: redefinition of 'void sortare()' void sortare() ^ plata3.cpp:10:6: error: 'void sortare()' previously defined here void sortare() ^ plata3.cpp: In function 'void afis(int)': plata3.cpp:86:6: error: redefinition of 'void afis(int)' void afis(int k) ^ plata3.cpp:23:6: error: 'void afis(int)' previously defined here void afis(int k) ^ plata3.cpp: In function 'void bkt(int)': plata3.cpp:95:6: error: redefinition of 'void bkt(int)' void bkt(int k) ^ plata3.cpp:32:6: error: 'void bkt(int)' previously defined here void bkt(int k) ^ plata3.cpp:103:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(s0<=s) ^ plata3.cpp: In function 'int main()': plata3.cpp:111:5: error: redefinition of 'int main()' int main() ^ plata3.cpp:50:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Plata3 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ă.