#1462
Gasti
Problema | Gasti | Operații I/O |
gasti.in /gasti.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #54235545 | Utilizator | |
Fișier | gasti.cpp | Dimensiune | 1.24 KB |
Data încărcării | 22 Noiembrie 2024, 22:41 | Scor / rezultat | Eroare de compilare |
gasti.cpp: In function 'int main()': gasti.cpp:21:5: error: reference to 'cin' is ambiguous cin >> n >> m; ^ gasti.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("gasti.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from gasti.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ gasti.cpp:24:9: error: reference to 'cin' is ambiguous cin >> x >> y; ^ gasti.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("gasti.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from gasti.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ gasti.cpp:33:5: error: reference to 'cout' is ambiguous cout << cnt << ' '; ^ gasti.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("gasti.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from gasti.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ gasti.cpp:48:9: error: reference to 'cout' is ambiguous cout << 1ll * fmaxi * (fmaxi - 1) / 2 % mod * maxi % mod * maxi % mod; ^ gasti.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("gasti.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from gasti.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ gasti.cpp:56:9: error: reference to 'cout' is ambiguous cout << 1ll * fmaxi2 % mod * maxi % mod * maxi2 % mod; ^ gasti.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("gasti.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from gasti.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 Gasti 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ă.