Problema | NrDivProd | Operații I/O |
nrdivprod.in /nrdivprod.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #23376158 | Utilizator | |
Fișier | nrdivprod.cpp | Dimensiune | 591 B |
Data încărcării | 27 Iunie 2020, 15:46 | Scor / rezultat | Eroare de compilare |
nrdivprod.cpp: In function 'int nr_div(long long unsigned int)': nrdivprod.cpp:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i*i<=x;++i) ^ nrdivprod.cpp: In function 'int main()': nrdivprod.cpp:25:5: error: reference to 'cin' is ambiguous cin>>n; ^ nrdivprod.cpp:8:10: note: candidates are: std::ifstream cin ifstream cin ("nrdivprod.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from nrdivprod.cpp:2: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ nrdivprod.cpp:29:9: error: reference to 'cin' is ambiguous cin>>k; ^ nrdivprod.cpp:8:10: note: candidates are: std::ifstream cin ifstream cin ("nrdivprod.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from nrdivprod.cpp:2: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ nrdivprod.cpp:32:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v.size();++i) ^ nrdivprod.cpp:35:5: error: reference to 'cout' is ambiguous cout<<nr_div(p); ^ nrdivprod.cpp:9:10: note: candidates are: std::ofstream cout ofstream cout ("nrdivprod.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from nrdivprod.cpp:2: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NrDivProd 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ă.