#1462
| 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 | #64413473 | Utilizator | |
| Fișier | gasti.cpp | Dimensiune | 1.24 KB |
| Data încărcării | 05 Mai 2026, 18:57 | Scor/rezultat | Eroare de compilare |
gasti.cpp: In function ‘int main()’: gasti.cpp:21:5: error: reference to ‘cin’ is ambiguous 21 | cin >> n >> m; | ^~~ In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:146, from gasti.cpp:1: /usr/include/c++/13/iostream:62:18: note: candidates are: ‘std::istream std::cin’ 62 | extern istream cin; ///< Linked to standard input | ^~~ gasti.cpp:5:10: note: ‘std::ifstream cin’ 5 | ifstream cin("gasti.in"); | ^~~ gasti.cpp:24:9: error: reference to ‘cin’ is ambiguous 24 | cin >> x >> y; | ^~~ /usr/include/c++/13/iostream:62:18: note: candidates are: ‘std::istream std::cin’ 62 | extern istream cin; ///< Linked to standard input | ^~~ gasti.cpp:5:10: note: ‘std::ifstream cin’ 5 | ifstream cin("gasti.in"); | ^~~ gasti.cpp:33:5: error: reference to ‘cout’ is ambiguous 33 | cout << cnt << ' '; | ^~~~ /usr/include/c++/13/iostream:63:18: note: candidates are: ‘std::ostream std::cout’ 63 | extern ostream cout; ///< Linked to standard output | ^~~~ gasti.cpp:6:10: note: ‘std::ofstream cout’ 6 | ofstream cout("gasti.out"); | ^~~~ gasti.cpp:48:9: error: reference to ‘cout’ is ambiguous 48 | cout << 1ll * fmaxi * (fmaxi - 1) / 2 % mod * maxi % mod * maxi % mod; | ^~~~ /usr/include/c++/13/iostream:63:18: note: candidates are: ‘std::ostream std::cout’ 63 | extern ostream cout; ///< Linked to standard output | ^~~~ gasti.cpp:6:10: note: ‘std::ofstream cout’ 6 | ofstream cout("gasti.out"); | ^~~~ gasti.cpp:56:9: error: reference to ‘cout’ is ambiguous 56 | cout << 1ll * fmaxi2 % mod * maxi % mod * maxi2 % mod; | ^~~~ /usr/include/c++/13/iostream:63:18: note: candidates are: ‘std::ostream std::cout’ 63 | extern ostream cout; ///< Linked to standard output | ^~~~ gasti.cpp:6:10: note: ‘std::ofstream cout’ 6 | ofstream cout("gasti.out"); | ^~~~
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ă.