#1275
Jaina
Jaina are nevoie de ajutor pentru a ajunge la mentorul ei.
Problema | Jaina | Operații I/O |
jaina.in /jaina.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #45690758 | Utilizator | |
Fișier | jaina.cpp | Dimensiune | 1.69 KB |
Data încărcării | 19 Octombrie 2023, 09:06 | Scor / rezultat | Eroare de compilare |
jaina.cpp:3:13: error: variable 'std::ifstream cin' has initializer but incomplete type ifstream cin("jaina.in"); ^ jaina.cpp:4:14: error: variable 'std::ofstream cout' has initializer but incomplete type ofstream cout("jaina.out"); ^ jaina.cpp:13:1: error: 'queue' does not name a type queue <poz> Q; ^ jaina.cpp: In function 'void lee()': jaina.cpp:23:5: error: 'Q' was not declared in this scope Q.push(r); ^ jaina.cpp:32:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(inside(inou,jnou)) ^ jaina.cpp: In function 'int main()': jaina.cpp:55:5: error: reference to 'cin' is ambiguous cin >> n >> ip >> jp >> is >> js >> t; ^ jaina.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("jaina.in"); ^ In file included from jaina.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ jaina.cpp:57:9: error: reference to 'cin' is ambiguous cin >> v[i].i >> v[i].j; ^ jaina.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("jaina.in"); ^ In file included from jaina.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ jaina.cpp:67:5: error: reference to 'cout' is ambiguous cout << a[is][js] - 1; ^ jaina.cpp:4:10: note: candidates are: <typeprefixerror>cout ofstream cout("jaina.out"); ^ In file included from jaina.cpp:1: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 Jaina 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ă.