Borderou de evaluare (job #2091904)

Utilizator calin1Serban Calin calin1 Data 20 decembrie 2017 15:53:46
Problema Trapez Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void solve()’: user.cpp:85:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",nr + numitor_0 * (numitor_0 - 1) / 2); ^ user.cpp: In function ‘void read()’: user.cpp:90:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:94:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d\n", &vec[i].x, &vec[i].y); ^ user.cpp:94:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:90:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:94:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &vec[i].x, &vec[i].y); ^ user.cpp: In function ‘int main()’: user.cpp:102:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.in","r",stdin); ^ user.cpp:103:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms448kbOk!10
20ms444kbKilled by signal 11(SIGSEGV).0
30ms436kbKilled by signal 11(SIGSEGV).0
40ms444kbKilled by signal 11(SIGSEGV).0
50ms440kbKilled by signal 11(SIGSEGV).0
60ms436kbKilled by signal 11(SIGSEGV).0
70ms440kbKilled by signal 11(SIGSEGV).0
80ms440kbKilled by signal 11(SIGSEGV).0
90ms440kbKilled by signal 11(SIGSEGV).0
100ms440kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?