#1461
Meteoriti
Ajutați-l pe vrăjitorul Arpsod să găsească aria maximă unei suprafețe de înălțime maximă, după căderea ploilor de meteoriți.
Problema | Meteoriti | Operații I/O |
meteoriti.in /meteoriti.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 32 MB
|
Id soluție | #53400054 | Utilizator | |
Fișier | meteoriti.cpp | Dimensiune | 1.43 KB |
Data încărcării | 28 Octombrie 2024, 14:24 | Scor / rezultat | Eroare de compilare |
meteoriti.cpp:6:28: error: 'int y1' redeclared as different kind of symbol int n , m , nr , x1 , x2 , y1 , y2 , add , maxi , cnt; ^ 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 meteoriti.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:241:1: error: previous declaration of 'double y1(double)' __MATHCALL (y1,, (_Mdouble_)); ^ meteoriti.cpp: In function 'int main()': meteoriti.cpp:30:5: error: reference to 'cin' is ambiguous cin >> n >> m >> nr; ^ meteoriti.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("meteoriti.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from meteoriti.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ meteoriti.cpp:33:9: error: reference to 'cin' is ambiguous cin >> x1 >> y1 >> x2 >> y2 >> add; ^ meteoriti.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("meteoriti.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from meteoriti.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ meteoriti.cpp:34:17: error: invalid types 'int [2002][double(double)throw ()]' for array subscript a[x1][y1] += add; ^ meteoriti.cpp:36:21: error: invalid types 'int [2002][double(double)throw ()]' for array subscript a[x2 + 1][y1] -= add; ^ meteoriti.cpp:61:10: error: reference to 'cout' is ambiguous cout << mx << " " << cnt; ^ meteoriti.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("meteoriti.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from meteoriti.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 Meteoriti 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ă.