Pagini recente » Borderou de evaluare (job #2446773) | Borderou de evaluare (job #1116515) | Borderou de evaluare (job #2255951) | Borderou de evaluare (job #43315) | Borderou de evaluare (job #2475255)
Borderou de evaluare (job #2475255)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:126:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", ans.size());
^
main.cpp: In instantiation of 'bool longestIncreasingSubsequence<T>::getLIS(std::vector<_Tp>&) [with T = int]':
main.cpp:125:19: required from here
main.cpp:86:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=1;i<v.size();++i)
main.cpp:99:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<v.size();++i){
main.cpp: In instantiation of 'void longestIncreasingSubsequence<T>::build() [with T = int]':
main.cpp:69:14: required from 'void longestIncreasingSubsequence<T>::prepareForLIS() [with T = int]'
main.cpp:82:22: required from 'bool longestIncreasingSubsequence<T>::getLIS(std::vector<_Tp>&) [with T = int]'
main.cpp:125:19: required from here
main.cpp:22:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<segTree.size();++i){
~^~~~~~~~~~~~~~~
main.cpp:115:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.in","r",stdin);
^
main.cpp:116:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.out","w",stdout);
^
main.cpp:117:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:121:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
main.cpp: In member function 'bool longestIncreasingSubsequence<T>::getLIS(std::vector<_Tp>&) [with T = int]':
main.cpp:104:28: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans.push_back(v[pos]);
~^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 3ms | 131kb | Corect! | 10 | 10 |
2 | 7ms | 524kb | Corect! | 10 | 10 |
3 | 3ms | 262kb | Corect! | 10 | 10 |
4 | 4ms | 262kb | Corect! | 10 | 10 |
5 | 4ms | 262kb | Corect! | 10 | 10 |
6 | 6ms | 393kb | Corect! | 10 | 10 |
7 | 7ms | 393kb | Corect! | 10 | 10 |
8 | 303ms | 13516kb | Time limit exceeded | 0 | 0 |
9 | 201ms | 13516kb | Corect! | 10 |
10 | 300ms | 13516kb | Time limit exceeded | 0 |
Punctaj total | 70 |