Borderou de evaluare (job #2120400)

Utilizator RazvipripPrip Razvi Razviprip Data 2 februarie 2018 13:42:15
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int ssi(int, int)’: user.cpp:11:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<strlen(s[b]) && j<strlen(s[a])) ^ user.cpp:11:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<strlen(s[b]) && j<strlen(s[a])) ^ user.cpp:15:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(j==strlen(s[a])) return 1; ^ user.cpp: In function ‘int main()’: user.cpp:25:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5001]’ [-Wformat=] scanf("%s",&a); ^ user.cpp:29:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5001]’ [-Wformat=] scanf("%s",&s[1]); ^ user.cpp:30:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(strlen(s[1])>m) ^ user.cpp:35:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if(strlen(s[1])==m) ^ user.cpp:47:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5001]’ [-Wformat=] scanf("%s",&s[i]); ^ user.cpp:20:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interesant.in","r",stdin); ^ user.cpp:21:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interesant.out","w",stdout); ^ user.cpp:22:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&p,&n); ^ user.cpp:25:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&a); ^ user.cpp:29:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&s[1]); ^ user.cpp:47:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&s[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms1268kbOK.520
24ms1268kbOK.5
30ms1264kbOK.5
40ms1264kbOK.5
50ms1348kbOK.33
6164ms2076kbOK.33
70ms1300kbOK.33
8124ms1760kbOK.33
9180ms2232kbOK.44
10412ms2220kbOK.44
11156ms2116kbOK.44
12468ms2180kbOK.44
13476ms2200kbOK.44
14504ms2232kbOK.55
15456ms2228kbOK.55
16496ms2232kbOK.55
17480ms2216kbOK.55
18684ms2240kbOK.55
19684ms2236kbOK.55
20688ms2232kbOK.66
21692ms2232kbOK.66
22688ms2236kbOK.66
Punctaj total100

Ceva nu functioneaza?