Pagini recente » Borderou de evaluare (job #3147258) | Borderou de evaluare (job #3215078) | Borderou de evaluare (job #2917368) | Borderou de evaluare (job #1373567) | Borderou de evaluare (job #2813443)
Borderou de evaluare (job #2813443)
Raport evaluator
Compilare:
main.cpp: In function 'AINT::ns AINT::construct(int, int, int)':
main.cpp:64:48: warning: narrowing conversion of '(((int)s.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)perm.std::vector<int>::operator[](((std::vector<int>::size_type)l))))) - 97)' from 'int' to 'unsigned int' [-Wnarrowing]
64 | aint[nde]=node{nil,nil,hash{1,{s[perm[l]]-'a',s[perm[l]]-'a'}}};
main.cpp:64:63: warning: narrowing conversion of '(((int)s.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)perm.std::vector<int>::operator[](((std::vector<int>::size_type)l))))) - 97)' from 'int' to 'unsigned int' [-Wnarrowing]
64 | aint[nde]=node{nil,nil,hash{1,{s[perm[l]]-'a',s[perm[l]]-'a'}}};
main.cpp:67:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
67 | int mid=l+r>>1;
| ~^~
main.cpp: In function 'foff AINT::update(int)':
main.cpp:91:27: warning: narrowing conversion of '(((int)s.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)poz))) - 97)' from 'int' to 'unsigned int' [-Wnarrowing]
91 | replace=hash{1,{s[poz]-'a',s[poz]-'a'}};
main.cpp:91:38: warning: narrowing conversion of '(((int)s.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)poz))) - 97)' from 'int' to 'unsigned int' [-Wnarrowing]
91 | replace=hash{1,{s[poz]-'a',s[poz]-'a'}};
main.cpp: In function 'void initalt(int)':
main.cpp:107:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
107 | for(int i=len; i<n; i++) {
| ~^~
main.cpp: In function 'int main()':
main.cpp:127:22: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
127 | for(int i=2; (1<<i)<=n; i++)
| ~~~~~~^~~
main.cpp:129:19: warning: narrowing conversion of '(((int)s.std::__cxx11::basic_string<char>::operator[](0)) - 97)' from 'int' to 'unsigned int' [-Wnarrowing]
129 | pref[0]={1,{s[0]-'a',s[0]-'a'}};
main.cpp:129:28: warning: narrowing conversion of '(((int)s.std::__cxx11::basic_string<char>::operator[](0)) - 97)' from 'int' to 'unsigned int' [-Wnarrowing]
129 | pref[0]={1,{s[0]-'a',s[0]-'a'}};
main.cpp:130:17: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
130 | for(int i=1; i<n; i++)
| ~^~
main.cpp:131:35: warning: narrowing conversion of '(((int)s.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))) - 97)' from 'int' to 'unsigned int' [-Wnarrowing]
131 | pref[i]=pref[i-1]+hash{1,{s[i]-'a',s[i]-'a'}};
main.cpp:131:44: warning: narrowing conversion of '(((int)s.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))) - 97)' from 'int' to 'unsigned int' [-Wnarrowing]
131 | pref[i]=pref[i-1]+hash{1,{s[i]-'a',s[i]-'a'}};
main.cpp:138:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
138 | if((p+(1<<k)-1>=n))
| ~~~~~~~~~~^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 15ms | 11956kb | Incorect | 0 | 0 |
2 | 15ms | 11956kb | Incorect | 0 |
3 | 538ms | 36614kb | Incorect | 0 | 0 |
4 | 537ms | 36614kb | Incorect | 0 |
5 | 536ms | 36605kb | Incorect | 0 |
6 | 2002ms | 98234kb | Time limit exceeded | 0 | 0 |
7 | 2004ms | 98217kb | Time limit exceeded | 0 |
8 | 2002ms | 98332kb | Time limit exceeded | 0 | 0 |
9 | 2000ms | 98316kb | Time limit exceeded | 0 |
10 | 2000ms | 98287kb | Time limit exceeded | 0 |
Punctaj total | 0 |