#1922
Nmod25
Se dau numerele naturale N
și X
. Aflați dacă N
este divizibil cu 2
X
și dacă N
este divizibil cu 5
X
.
Problema | Nmod25 | Operații I/O |
![]() nmod25.in /nmod25.out
|
---|---|---|---|
Limita timp | 0.01 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51489745 | Utilizator | |
Fișier | nmod25.cpp | Dimensiune | 592 B |
Data încărcării | 26 Iunie 2024, 22:39 | Scor / rezultat | Eroare de compilare |
nmod25.cpp: In function 'int main()': nmod25.cpp:16:5: error: reference to 'cin' is ambiguous cin >> p >> c; ^ nmod25.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("nmod25.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from nmod25.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ nmod25.cpp:21:25: error: reference to 'cout' is ambiguous if(a%put(p , 2)==0) cout << "DA" << endl; ^ nmod25.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("nmod25.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from nmod25.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ nmod25.cpp:22:10: error: reference to 'cout' is ambiguous else cout << "NU"<< endl; ^ nmod25.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("nmod25.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from nmod25.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ nmod25.cpp:23:25: error: reference to 'cout' is ambiguous if(a%put(p , 5)==0) cout << "DA"; ^ nmod25.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("nmod25.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from nmod25.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ nmod25.cpp:24:10: error: reference to 'cout' is ambiguous else cout << "NU"; ^ nmod25.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("nmod25.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from nmod25.cpp:1: /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 Nmod25 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ă.