Pagini recente » Borderou de evaluare (job #3283672) | Borderou de evaluare (job #876939) | Borderou de evaluare (job #61526) | Borderou de evaluare (job #2699970) | Borderou de evaluare (job #2248239)
Borderou de evaluare (job #2248239)
Raport evaluator
Compilare:
user.cpp: In function ‘void genereaza()’:
user.cpp:96:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s_a);i++)
~^~~~~~~~~~~~
user.cpp:101:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s_b);i++)
~^~~~~~~~~~~~
user.cpp:106:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s_c);i++)
~^~~~~~~~~~~~
user.cpp: In function ‘void display(std::vector<int>)’:
user.cpp:116:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(x.size()==0)
^~
user.cpp:118:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
for(int i=0;i<x.size();i++)
^~~
user.cpp:118:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<x.size();i++)
~^~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:231:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1034]’ [-Wformat=]
scanf("%s",&s_a);
^
user.cpp:232:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1034]’ [-Wformat=]
scanf("%s",&s_b);
^
user.cpp:233:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1034]’ [-Wformat=]
scanf("%s",&s_c);
^
user.cpp:224:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("entropy.in","r",stdin);
^
user.cpp:225:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("entropy.out","w",stdout);
^
user.cpp:227:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&t);
^
user.cpp:231:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s_a);
^
user.cpp:232:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s_b);
^
user.cpp:233:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s_c);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 12ms | 1328kb | OK! | 100 |
Punctaj total | 100 |