Borderou de evaluare (job #1680116)

Utilizator Player1Player 1 Player1 Data 8 aprilie 2016 15:28:39
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d ", &n); ^ user.cpp:14:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type* {aka int*}’ [-Wformat=] scanf("%ld ", &nums[i]); ^ user.cpp:18:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 1; i < nums.size(); i++){ ^ user.cpp:22:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < solutions.size(); j++){ ^ user.cpp:43:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < solutions[indexBig].size(); j++) ^ user.cpp:48:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < solutions[solutions.size() - 1].size(); i++) ^ user.cpp:49:52: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ [-Wformat=] printf("%ld ", solutions[solutions.size() - 1][i]); ^ user.cpp:10:44: warning: variable ‘indexMin’ set but not used [-Wunused-but-set-variable] long n, i, j, maxElem, minElem, indexMax, indexMin, biggestMin, indexBig; ^ user.cpp:8:33: 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); ^ user.cpp:9:34: 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); ^ user.cpp:12:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &n); ^ user.cpp:14:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld ", &nums[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms228kbKilled by signal 11(SIGSEGV).00
20ms236kbKilled by signal 11(SIGSEGV).00
30ms232kbKilled by signal 11(SIGSEGV).00
40ms228kbKilled by signal 11(SIGSEGV).00
50ms232kbKilled by signal 11(SIGSEGV).00
60ms228kbKilled by signal 11(SIGSEGV).00
70ms232kbKilled by signal 11(SIGSEGV).00
80ms232kbKilled by signal 11(SIGSEGV).00
90ms236kbKilled by signal 11(SIGSEGV).0
100ms232kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?