#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 | #54919741 | Utilizator | |
Fișier | pestelee.cpp | Dimensiune | 1.36 KB |
Data încărcării | 12 Decembrie 2024, 10:32 | Scor / rezultat | Eroare de compilare |
pestelee.cpp:18:38: error: 'int y1' redeclared as different kind of symbol int cer , n , m , a[501][501] , x1 , y1 , x2 , y2 , b[501][501] , d[501][501]; ^ In file included from /usr/include/features.h:374:0, from /usr/include/assert.h:35, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from pestelee.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:241:1: error: previous declaration of 'double y1(double)' __MATHCALL (y1,, (_Mdouble_)); ^ pestelee.cpp: In function 'int main()': pestelee.cpp:52:5: error: reference to 'cin' is ambiguous cin >> n >> m; ^ 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 >> a[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 >> x1 >> y1 >> x2 >> y2; ^ 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 >> cer; ^ 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:60:16: error: invalid conversion from 'double (*)(double)throw ()' to 'int' [-fpermissive] lee(x1 , y1); ^ pestelee.cpp:25:6: error: initializing argument 2 of 'void lee(int, int)' [-fpermissive] void lee(int i , int j) ^ pestelee.cpp:61:18: error: reference to 'cout' is ambiguous if(cer == 1) cout << b[x2][y2]; ^ 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 << d[x2][y2]; ^ 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ă.