Borderou de evaluare (job #1460922)

Utilizator cozmin97Gemene Cozmin cozmin97 Data 14 iulie 2015 12:55:44
Problema Ksecv3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘void finish()’: user.cpp:67:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<k; i++) ^ user.cpp: In function ‘void cauta(int, int)’: user.cpp:73:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(level == k) return; ^ user.cpp:74:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=pos+1; i<n; i++) ^ user.cpp:77:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(level+1 == k && i==n-1) ^ user.cpp:77:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(level+1 == k && i==n-1) ^ user.cpp: In function ‘int main()’: user.cpp:92:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=1; i<n; i++){ ^ user.cpp:97:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<n-k+1; i++){ ^ user.cpp:85:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ksecv3.in","r",stdin); ^ user.cpp:86:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ksecv3.out","w",stdout); ^ user.cpp:90:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^ user.cpp:91:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); sums[0] = x; ^ user.cpp:93:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbOK10
20ms444kbOK10
30ms448kbOK10
40ms436kbOK10
50msDepăşitMemory limit exceeded.0
60msDepăşitMemory limit exceeded.0
70ms488kbKilled by signal 11(SIGSEGV).0
848msDepăşitMemory limit exceeded.0
90ms488kbKilled by signal 11(SIGSEGV).0
100ms484kbKilled by signal 11(SIGSEGV).0
Punctaj total40

Ceva nu functioneaza?