Borderou de evaluare (job #1546280)

Utilizator denniscrevusDennis Curti denniscrevus Data 7 decembrie 2015 21:31:58
Problema Expresie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d%d", n[i],n[i+1]); ^ user.cpp:12:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:6:33: warning: unused variable ‘x’ [-Wunused-variable] int n[100],i,max1,max2,max3,x,numarul,s,m,max5; ^ user.cpp:6:35: warning: variable ‘numarul’ set but not used [-Wunused-but-set-variable] int n[100],i,max1,max2,max3,x,numarul,s,m,max5; ^ user.cpp:4:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("expresie.in","r",stdin); ^ user.cpp:5:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("expresie.out","w",stdout); ^ user.cpp:7:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:12:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", n[i],n[i+1]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbKilled by signal 11(SIGSEGV).0
20ms236kbKilled by signal 11(SIGSEGV).0
30ms236kbKilled by signal 11(SIGSEGV).0
40ms240kbKilled by signal 11(SIGSEGV).0
50ms232kbKilled by signal 11(SIGSEGV).0
60ms232kbKilled by signal 11(SIGSEGV).0
70ms236kbKilled by signal 11(SIGSEGV).0
80ms240kbKilled by signal 11(SIGSEGV).0
90ms236kbKilled by signal 11(SIGSEGV).0
100ms232kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?