#1268
EasyQuery
Să se gestioneze stocul unui magazin.
Problema | EasyQuery | Operații I/O |
easyquery.in /easyquery.out
|
---|---|---|---|
Limita timp | 0.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53912236 | Utilizator | |
Fișier | easyquery.cpp | Dimensiune | 2.03 KB |
Data încărcării | 14 Noiembrie 2024, 15:53 | Scor / rezultat | Eroare de compilare |
easyquery.cpp: In function 'int main()': easyquery.cpp:67:5: error: redefinition of 'int main()' int main() ^ easyquery.cpp:19:5: error: 'int main()' previously defined here int main() { ^ easyquery.cpp:70:5: error: reference to 'cin' is ambiguous cin>>n; ^ easyquery.cpp:62:10: note: candidates are: std::ifstream cin ifstream cin ("easyquery.in"); ^ In file included from easyquery.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ easyquery.cpp:73:9: error: reference to 'cin' is ambiguous cin>>a[i]; ^ easyquery.cpp:62:10: note: candidates are: std::ifstream cin ifstream cin ("easyquery.in"); ^ In file included from easyquery.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ easyquery.cpp:77:5: error: reference to 'cin' is ambiguous cin>>t; ^ easyquery.cpp:62:10: note: candidates are: std::ifstream cin ifstream cin ("easyquery.in"); ^ In file included from easyquery.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ easyquery.cpp:80:9: error: reference to 'cin' is ambiguous cin>>o>>st>>dr>>x; ^ easyquery.cpp:62:10: note: candidates are: std::ifstream cin ifstream cin ("easyquery.in"); ^ In file included from easyquery.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ easyquery.cpp:93:9: error: reference to 'cout' is ambiguous cout<<a[i]<<" "; ^ easyquery.cpp:63:10: note: candidates are: std::ofstream cout ofstream cout ("easyquery.out"); ^ In file included from easyquery.cpp:2:0: /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 EasyQuery 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ă.