Borderou de evaluare (job #1528734)

Utilizator lflorin29Florin Laiu lflorin29 Data 19 noiembrie 2015 23:09:13
Problema Virus Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:60:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %s\n", currentlength, that); ^ user.cpp:79:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<act->where.size();++i) ^ user.cpp:48:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("virus.in", "r", stdin); ^ user.cpp:49:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("virus.out", "w", stdout); ^ user.cpp:55:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %s\n", &N, &numWords, S); ^ user.cpp:60:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %s\n", currentlength, that); ^ user.cpp:60:46: warning: ‘currentlength’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms484kbKilled by signal 11(SIGSEGV).0
20ms408kbKilled by signal 11(SIGSEGV).0
30ms508kbKilled by signal 11(SIGSEGV).0
40ms488kbKilled by signal 11(SIGSEGV).0
50ms512kbKilled by signal 11(SIGSEGV).0
60ms468kbKilled by signal 11(SIGSEGV).0
70ms508kbKilled by signal 11(SIGSEGV).0
80ms508kbKilled by signal 11(SIGSEGV).0
90ms460kbKilled by signal 11(SIGSEGV).0
100ms420kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?