Borderou de evaluare (job #1658668)

Utilizator Vlad1111Sbengheci Vlad-Andrei Vlad1111 Data 21 martie 2016 18:40:53
Problema Blis Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 3

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:45:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[31]’ [-Wformat=] scanf("%d\n%s",&k,&a); ^ user.cpp:52:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<strlen(a); i++) ^ user.cpp:60:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=i+1; j<i+k && j<strlen(a); j++) ^ user.cpp: In function ‘int caut(int, int)’: user.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:42:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("blis.in","r",stdin); ^ user.cpp:43:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("blis.out","w",stdout); ^ user.cpp:45:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n%s",&k,&a); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms448kbValoare incorecta cerinta 2 !1
20ms448kbValoare incorecta cerinta 2 !1
30ms448kbValoare incorecta cerinta 2 !1
40ms408kbKilled by signal 11(SIGSEGV).0
50ms408kbKilled by signal 11(SIGSEGV).0
60ms404kbKilled by signal 11(SIGSEGV).0
70ms404kbKilled by signal 11(SIGSEGV).0
80ms408kbKilled by signal 11(SIGSEGV).0
90ms404kbKilled by signal 11(SIGSEGV).0
100ms404kbKilled by signal 11(SIGSEGV).0
110ms408kbKilled by signal 11(SIGSEGV).0
120ms408kbKilled by signal 11(SIGSEGV).0
130ms408kbKilled by signal 11(SIGSEGV).0
140ms408kbKilled by signal 11(SIGSEGV).0
150ms408kbKilled by signal 11(SIGSEGV).0
160ms416kbKilled by signal 11(SIGSEGV).0
170ms420kbKilled by signal 11(SIGSEGV).0
180ms424kbKilled by signal 11(SIGSEGV).0
190ms416kbKilled by signal 11(SIGSEGV).0
200ms416kbKilled by signal 11(SIGSEGV).0
Punctaj total3

Ceva nu functioneaza?