Borderou de evaluare (job #1627604)

Utilizator horiainfoTurcuman Horia horiainfo Data 3 martie 2016 18:00:41
Problema Vecini2 Status done
Runda Prosoft @ NT Clasa a 10-a Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘void inversBig(int)’: user.cpp:77:43: warning: operation on ‘b[j]’ may be undefined [-Wsequence-point] b[i] = b[i] + b[j] - (b[j] = b[i]); ^ user.cpp: In function ‘void inversSmall(int)’: user.cpp:154:43: warning: operation on ‘b[j]’ may be undefined [-Wsequence-point] b[i] = b[i] + b[j] - (b[j] = b[i]); ^ user.cpp: In function ‘int main()’: user.cpp:167:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5005]’ [-Wformat=] scanf("%s",&a); ^ user.cpp:168:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5005]’ [-Wformat=] scanf("%s",&b); ^ user.cpp:165:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("vecini2.in","r",stdin); ^ user.cpp:166:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:167:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&a); ^ user.cpp:168:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms420kbOK10
20ms424kbOK10
30ms412kbIncorect0
40ms408kbOK10
50ms416kbOK10
60ms408kbOK10
70ms412kbOK10
80ms412kbOK10
90ms412kbOK10
100ms412kbOK10
Punctaj total90

Ceva nu functioneaza?