#3346
pestelee
În arhipelagul X
, ajunge un peşte de aur. După drumul obositor parcurs de peşte, el vrea să se relaxeze într-o anumită zonă din acest arhipelag (cu coordonatele x2
, y2
). Totodată, acest peşte este curios să afle câte modalităţi sunt ca să ajungă în acea zonă.
Problema | pestelee | Operații I/O |
pestelee.in /pestelee.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54920076 | Utilizator | |
Fișier | pestelee.cpp | Dimensiune | 1.46 KB |
Data încărcării | 12 Decembrie 2024, 10:37 | Scor / rezultat | Eroare de compilare |
pestelee.cpp: In function 'int main()': pestelee.cpp:52:5: error: reference to 'cin' is ambiguous cin >> rows >> cols; ^ pestelee.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("pestelee.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from pestelee.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ pestelee.cpp:55:13: error: reference to 'cin' is ambiguous cin >> grid[i][j]; ^ pestelee.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("pestelee.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from pestelee.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ pestelee.cpp:57:5: error: reference to 'cin' is ambiguous cin >> start_x >> start_y >> end_x >> end_y; ^ pestelee.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("pestelee.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from pestelee.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ pestelee.cpp:58:5: error: reference to 'cin' is ambiguous cin >> command; ^ pestelee.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("pestelee.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from pestelee.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ pestelee.cpp:61:22: error: reference to 'cout' is ambiguous if(command == 1) cout << dist[end_x][end_y]; ^ pestelee.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("pestelee.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from pestelee.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ pestelee.cpp:62:10: error: reference to 'cout' is ambiguous else cout << paths[end_x][end_y]; ^ pestelee.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("pestelee.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from pestelee.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 pestelee 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ă.