Problema | Prime3 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54218705 | Utilizator | |
Fișier | prime3.cpp | Dimensiune | 376 B |
Data încărcării | 22 Noiembrie 2024, 12:54 | Scor / rezultat | Eroare de compilare |
prime3.cpp: In function 'int main()': prime3.cpp:7:15: error: two or more data types in declaration of 'n' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:7:18: error: two or more data types in declaration of 'x' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:7:20: error: two or more data types in declaration of 'prim' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:7:26: error: two or more data types in declaration of 'nr' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:7:32: error: two or more data types in declaration of 'i' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:7:34: error: two or more data types in declaration of 's' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:7:37: error: two or more data types in declaration of 'M' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:7:39: error: two or more data types in declaration of 'd' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:7:41: error: two or more data types in declaration of 'k' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:7:44: error: two or more data types in declaration of 'm' int long int n, x,prim ,nr=0, i,s, M,d,k, m=0; ^ prime3.cpp:8:6: error: 'n' was not declared in this scope cin>>n; ^ prime3.cpp:9:5: error: 'i' was not declared in this scope for(i=1; i<n; i++) ^ prime3.cpp:11:10: error: 'x' was not declared in this scope cin>>x; ^ prime3.cpp:12:5: error: 'prim' was not declared in this scope prim=1; ^ prime3.cpp:16:5: error: expected ';' before 'for' for(d=2;d*d<=x;d++) ^ prime3.cpp:16:13: error: 'd' was not declared in this scope for(d=2;d*d<=x;d++) ^ prime3.cpp:16:23: error: expected ';' before ')' token for(d=2;d*d<=x;d++) ^ prime3.cpp:24:9: error: 's' was not declared in this scope s=s+x; ^ prime3.cpp:27:7: error: 's' was not declared in this scope cout<<s; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Prime3 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ă.