Borderou de evaluare (job #779631)

Utilizator avatar Radu_Balas Radu Andrei Balas Radu_Balas IP ascuns
Problemă Secvenţă Bitonă (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 iun. 2024 09:40:24 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'usisg' does not name a type 2 | usisg namespace std; | ^~~~~ main.cpp: In function 'int main()': main.cpp:5:1: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 5 | ifstream fin("bitona.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ios:40, from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:40, from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/fstream:40, from main.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/iosfwd:164:41: note: 'std::ifstream' declared here 164 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:6:1: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 6 | ofstream fout("bitona.out"); | ^~~~~~~~ | std::ofstream /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/iosfwd:167:41: note: 'std::ofstream' declared here 167 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:8:1: error: 'fin' was not declared in this scope 8 | fin >> n; | ^~~ main.cpp:25:7: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 25 | if(b>0&&a==1||b==3&&a) | ~~~^~~~~~ main.cpp:38:7: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 38 | if(a>0&&b==1||a==3&&b>0) | ~~~^~~~~~ main.cpp:45:1: error: 'fout' was not declared in this scope 45 | fout<<"NU"; | ^~~~ main.cpp:48:1: error: 'fout' was not declared in this scope 48 | fout<<"NU"; | ^~~~ main.cpp:51:1: error: 'fout' was not declared in this scope 51 | fout<<"NU"; | ^~~~ main.cpp:53:1: error: 'fout' was not declared in this scope 53 | fout<<"DA"; | ^~~~