#3949
mindist
Din fiecare celulă, să se afișeze distanța minimă la cel mai apropiat punct de referință.
Problema | mindist | Operații I/O |
mindist.in /mindist.out
|
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51343879 | Utilizator | |
Fișier | mindist.cpp | Dimensiune | 1.33 KB |
Data încărcării | 09 Iunie 2024, 12:40 | Scor / rezultat | Eroare de compilare |
mindist.cpp:4:13: error: variable 'std::ifstream cin' has initializer but incomplete type ifstream cin("mindist.in"); ^ mindist.cpp:5:14: error: variable 'std::ofstream cout' has initializer but incomplete type ofstream cout("mindist.out"); ^ mindist.cpp: In function 'int main()': mindist.cpp:41:5: error: reference to 'cin' is ambiguous cin.tie(NULL); ^ mindist.cpp:4:10: note: candidates are: <typeprefixerror>cin ifstream cin("mindist.in"); ^ In file included from mindist.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ mindist.cpp:42:5: error: reference to 'cin' is ambiguous cin>>n>>m>>k; ^ mindist.cpp:4:10: note: candidates are: <typeprefixerror>cin ifstream cin("mindist.in"); ^ In file included from mindist.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ mindist.cpp:49:9: error: reference to 'cin' is ambiguous cin>>x>>y; ^ mindist.cpp:4:10: note: candidates are: <typeprefixerror>cin ifstream cin("mindist.in"); ^ In file included from mindist.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ mindist.cpp:54:9: error: reference to 'cin' is ambiguous cin>>x>>y; ^ mindist.cpp:4:10: note: candidates are: <typeprefixerror>cin ifstream cin("mindist.in"); ^ In file included from mindist.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ mindist.cpp:59:26: error: reference to 'cout' is ambiguous for(int i=1;i<=n;i++,cout<<'\n') ^ mindist.cpp:5:10: note: candidates are: <typeprefixerror>cout ofstream cout("mindist.out"); ^ In file included from mindist.cpp:2:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ mindist.cpp:62:44: error: reference to 'cout' is ambiguous if(a[i][j]==-1 || a[i][j]==-2) cout<<-1<<' '; ^ mindist.cpp:5:10: note: candidates are: <typeprefixerror>cout ofstream cout("mindist.out"); ^ In file included from mindist.cpp:2:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ mindist.cpp:63:18: error: reference to 'cout' is ambiguous else cout<<a[i][j]<<' '; ^ mindist.cpp:5:10: note: candidates are: <typeprefixerror>cout ofstream cout("mindist.out"); ^ In file included from mindist.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 mindist 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ă.