Borderou de evaluare (job #3040713)

Utilizator MihneaLoxGheorghe Mihnea Florentin MihneaLox Data 30 martie 2023 12:27:20
Problema Nozero Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void get_mask(long long unsigned int)': main.cpp:16:18: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 16 | for(int i=1;i<=N && continua;++i){ | ~^~~ main.cpp:17:16: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 17 | if(i*10>N) | ~~~~^~ main.cpp:19:28: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 19 | if(!mask[i] && i*10<=N){ | ~~~~^~~ main.cpp: In function 'int main()': main.cpp:37:18: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 37 | for(int i=1;i<=N;++i) | ~^~~ main.cpp:38:9: error: reference to 'numbers' is ambiguous 38 | numbers[i]=i; | ^~~~~~~ In file included from /usr/include/c++/12.2.1/bits/max_size_type.h:37, from /usr/include/c++/12.2.1/bits/ranges_base.h:38, from /usr/include/c++/12.2.1/string_view:50, from /usr/include/c++/12.2.1/bits/basic_string.h:47, from /usr/include/c++/12.2.1/string:53, from /usr/include/c++/12.2.1/bits/locale_classes.h:40, from /usr/include/c++/12.2.1/bits/ios_base.h:41, from /usr/include/c++/12.2.1/ios:42, from /usr/include/c++/12.2.1/istream:38, from /usr/include/c++/12.2.1/fstream:38, from main.cpp:1: /usr/include/c++/12.2.1/numbers:48:11: note: candidates are: 'namespace std::numbers { }' 48 | namespace numbers | ^~~~~~~ main.cpp:12:5: note: 'long long unsigned int numbers [100000]' 12 | ull numbers[100000]; | ^~~~~~~ main.cpp:39:18: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 39 | for(int i=2;i<=K;++i) | ~^~~ main.cpp:40:26: error: reference to 'numbers' is ambiguous 40 | next_permutation(numbers+1,numbers+N+1); | ^~~~~~~ /usr/include/c++/12.2.1/numbers:48:11: note: candidates are: 'namespace std::numbers { }' 48 | namespace numbers | ^~~~~~~ main.cpp:12:5: note: 'long long unsigned int numbers [100000]' 12 | ull numbers[100000]; | ^~~~~~~ main.cpp:40:36: error: reference to 'numbers' is ambiguous 40 | next_permutation(numbers+1,numbers+N+1); | ^~~~~~~ /usr/include/c++/12.2.1/numbers:48:11: note: candidates are: 'namespace std::numbers { }' Non zero exit status: 1

Ceva nu functioneaza?