Borderou de evaluare (job #1735482)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 29 iulie 2016 23:41:04
Problema Joben Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100005]’ [-Wformat=] scanf("%s",&s1); ^ user.cpp:15:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<strlen(s1);j++) ^ user.cpp:20:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100005]’ [-Wformat=] scanf("%s",&s2); ^ user.cpp:21:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<strlen(s2);j++) ^ user.cpp:8:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("joben.in","r",stdin); ^ user.cpp:9:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("joben.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:13:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:14:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&s1); ^ user.cpp:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:20:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&s2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms1216kbIncorect0
20ms436kbIncorect0
320ms440kbIncorect0
4Depăşit440kbTime limit exceeded.0
5Depăşit448kbTime limit exceeded.0
6Depăşit472kbTime limit exceeded.0
7Depăşit440kbTime limit exceeded.0
8Depăşit1260kbTime limit exceeded.0
9Depăşit464kbTime limit exceeded.0
10Depăşit444kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?