Borderou de evaluare (job #1820943)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 2 decembrie 2016 13:19:37
Problema Semne3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[500005]’ [-Wformat=] scanf("%s",&s); ^ user.cpp:15:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<strlen(s)) ^ user.cpp:18:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<(strlen(s)-1) && s[i]==s[i+1]) i++; ^ user.cpp:33:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<sol.size();i++) printf("%d ",sol[i]); ^ user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("semne3.in","r",stdin); ^ user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("semne3.out","w",stdout); ^ user.cpp:10:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:11:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:12: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
10ms432kbOK.10
20ms428kbOK.10
30ms432kbOK.10
40ms448kbOK.10
5Depăşit1416kbTime limit exceeded.0
6Depăşit1008kbTime limit exceeded.0
7Depăşit1496kbTime limit exceeded.0
8Depăşit2648kbTime limit exceeded.0
9Depăşit2740kbTime limit exceeded.0
10Depăşit2956kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?