Borderou de evaluare (job #1627823)

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

Raport evaluator

Compilare: user.cpp: In function ‘void inversBig(int)’: user.cpp:40: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:125: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:181:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5005]’ [-Wformat=] scanf("%s",&a); ^ user.cpp:182:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5005]’ [-Wformat=] scanf("%s",&b); ^ user.cpp:179: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:180:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:181:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&a); ^ user.cpp:182: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
10ms428kbOK10
20ms424kbOK10
30ms432kbOK10
40ms408kbOK10
50ms416kbOK10
60ms420kbOK10
70ms416kbOK10
80ms412kbOK10
90ms420kbOK10
100ms416kbOK10
Punctaj total100

Ceva nu functioneaza?