Borderou de evaluare (job #1352074)

Utilizator geniucosOncescu Costin geniucos Data 21 februarie 2015 11:58:17
Problema Por Costel si Pocnitoarea Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int solve(int)’: user.cpp:17:26: warning: unused variable ‘ras’ [-Wunused-variable] int last, p, u, mij, ras; ^ user.cpp: In function ‘int main()’: user.cpp:43:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("pocnitoare.in", "r", stdin); ^ user.cpp:44:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("pocnitoare.out", "w", stdout); ^ user.cpp:46:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d %d %d %d %d", &N, &A, &B, &X1, &Q, &Q1); ^ user.cpp: In function ‘int solve(int)’: user.cpp:30:22: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (int j=T[last]; j<pos; j++) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13524ms420kbOK100
Punctaj total100

Ceva nu functioneaza?