Borderou de evaluare (job #3269578)

Utilizator maxtraAlex Deonise maxtra Data 19 ianuarie 2025 19:51:51
Problema Fold Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:65:1: error: 'bitset' does not name a type 65 | bitset<2005> a[255]; | ^~~~~~ main.cpp: In function 'int main()': main.cpp:70:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 70 | ifstream cin("fold.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/12.2.1/ios:38, from /usr/include/c++/12.2.1/istream:38, from /usr/include/c++/12.2.1/sstream:38, from /usr/include/c++/12.2.1/complex:45, from /usr/include/c++/12.2.1/ccomplex:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54, from main.cpp:62: /usr/include/c++/12.2.1/iosfwd:162:41: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:71:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 71 | ofstream cout("fold.out"); | ^~~~~~~~ | std::ofstream /usr/include/c++/12.2.1/iosfwd:165:41: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:73:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 73 | cin >> n >> m; | ^~~ | std::cin In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:75: /usr/include/c++/12.2.1/iostream:60:18: note: 'std::cin' declared here 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:77:20: error: 'a' was not declared in this scope 77 | cin >> a[i][j]; | ^ main.cpp:89:22: error: 'a' was not declared in this scope 89 | int c = (a[i] & a[j]).count(); | ^ main.cpp:93:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 93 | cout << ans; | ^~~~ | std::cout /usr/include/c++/12.2.1/iostream:61:18: note: 'std::cout' declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?