#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 | #41714223 | Utilizator | |
Fișier | gasti.cpp | Dimensiune | 1.21 KB |
Data încărcării | 01 Februarie 2023, 20:25 | Scor / rezultat | Eroare de compilare |
gasti.cpp: In function 'int main()': gasti.cpp:16:5: error: reference to 'cin' is ambiguous cin >> n >> m; ^ gasti.cpp:3: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:19:9: error: reference to 'cin' is ambiguous cin >> x >> y; ^ gasti.cpp:3: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:26:5: error: reference to 'cout' is ambiguous cout << cnt << ' '; ^ gasti.cpp:4: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:36:9: error: reference to 'cout' is ambiguous cout << 1ll * fmaxi * (fmaxi - 1) / 2 % mod * maxi % mod * maxi % mod; ^ gasti.cpp:4: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:44:9: error: reference to 'cout' is ambiguous cout << 1ll * fmaxi2 % mod * maxi % mod * maxi2 % mod; ^ gasti.cpp:4: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ă.