#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 | #27108216 | Utilizator | |
Fișier | gasti.cpp | Dimensiune | 1.53 KB |
Data încărcării | 10 Ianuarie 2021, 17:40 | Scor / rezultat | Eroare de compilare |
gasti.cpp: In function 'int32_t main()': gasti.cpp:38:4: error: reference to 'cin' is ambiguous cin.tie(0); ^ gasti.cpp:9:12: note: candidates are: std::ifstream cin #define in cin ^ gasti.cpp:11:10: note: in expansion of macro 'in' ifstream in ("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:39:4: error: reference to 'cin' is ambiguous cin >> n >> m; ^ gasti.cpp:9:12: note: candidates are: std::ifstream cin #define in cin ^ gasti.cpp:11:10: note: in expansion of macro 'in' ifstream in ("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:42:3: error: reference to 'cin' is ambiguous cin >> l >> r; ^ gasti.cpp:9:12: note: candidates are: std::ifstream cin #define in cin ^ gasti.cpp:11:10: note: in expansion of macro 'in' ifstream in ("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:53:2: error: reference to 'cout' is ambiguous cout << len << ' '; ^ gasti.cpp:10:13: note: candidates are: std::ofstream cout #define out cout ^ gasti.cpp:12:10: note: in expansion of macro 'out' ofstream out ("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:55:3: error: reference to 'cout' is ambiguous cout << n * (n - 1) / 2; ^ gasti.cpp:10:13: note: candidates are: std::ofstream cout #define out cout ^ gasti.cpp:12:10: note: in expansion of macro 'out' ofstream out ("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:71:4: error: reference to 'cout' is ambiguous cout << ans; ^ gasti.cpp:10:13: note: candidates are: std::ofstream cout #define out cout ^ gasti.cpp:12:10: note: in expansion of macro 'out' ofstream out ("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:80:4: error: reference to 'cout' is ambiguous cout << ans; ^ gasti.cpp:10:13: note: candidates are: std::ofstream cout #define out cout ^ gasti.cpp:12:10: note: in expansion of macro 'out' ofstream out ("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ă.