Borderou de evaluare (job #1754241)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 7 septembrie 2016 18:45:19
Problema Spion Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 15

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:38:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100005]’ [-Wformat=] scanf("%s",&s); ^ user.cpp:41:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s);i++) if (s[i]=='E') nr++; ^ user.cpp:46:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s);i++) if (s[i]=='E') nr++; ^ user.cpp:34:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("spion.in","r",stdin); ^ user.cpp:35:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("spion.out","w",stdout); ^ user.cpp:36:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&p); ^ user.cpp:37:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:38:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms432kbOK5
268ms456kbOK5
3Depăşit468kbTime limit exceeded.0
4Depăşit480kbTime limit exceeded.0
50ms444kbOK5
60ms444kbIncorect0
70ms440kbIncorect0
80ms448kbIncorect0
90ms444kbIncorect0
104ms448kbIncorect0
1168ms460kbIncorect0
12156ms472kbIncorect0
13276ms484kbIncorect0
14Depăşit436kbTime limit exceeded.0
15Depăşit444kbTime limit exceeded.0
16Depăşit456kbTime limit exceeded.0
17Depăşit468kbTime limit exceeded.0
18Depăşit480kbTime limit exceeded.0
19Depăşit484kbTime limit exceeded.0
20Depăşit480kbTime limit exceeded.0
Punctaj total15

Ceva nu functioneaza?