Borderou de evaluare (job #3177208)

Utilizator Sasha_12454Eric Paturan Sasha_12454 Data 28 noiembrie 2023 18:30:24
Problema Strabunica Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:14:5: error: reference to 'cin' is ambiguous 14 | cin>>n; | ^~~ In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:75, from main.cpp:1: /usr/include/c++/12.2.1/iostream:60:18: note: candidates are: 'std::istream std::cin' 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:4:10: note: 'std::ifstream cin' 4 | ifstream cin ("strabunica.in"); | ^~~ main.cpp:18:9: error: reference to 'cin' is ambiguous 18 | cin>>v[i]; | ^~~ /usr/include/c++/12.2.1/iostream:60:18: note: candidates are: 'std::istream std::cin' 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:4:10: note: 'std::ifstream cin' 4 | ifstream cin ("strabunica.in"); | ^~~ main.cpp:26:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 26 | while(v[s.top()]>=v[i]) | ^~~~~ main.cpp:28:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 28 | st[i]=s.top(); | ^~ main.cpp:33:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 33 | while(v[s1.top()]>=v[i]) | ^~~~~ main.cpp:35:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 35 | dr[i]=s1.top(); | ^~ main.cpp:41:5: error: reference to 'cout' is ambiguous 41 | cout<<fin; | ^~~~ /usr/include/c++/12.2.1/iostream:61:18: note: candidates are: 'std::ostream std::cout' 61 | extern ostream cout; /// Linked to standard output | ^~~~ main.cpp:5:10: note: 'std::ofstream cout' 5 | ofstream cout ("strabunica.out"); | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?