Borderou de evaluare (job #1445477)

Utilizator dragangabrielDragan Andrei Gabriel dragangabriel Data 30 mai 2015 14:07:08
Problema Plantatii Status done
Runda Adolescent Grigore Moisil 2015 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘bool ok(int)’: user.cpp:15:51: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses] if (a[i + x][j + x] - a[i - 1][j - 1] <= w + b[i + x][j] - b[i - 1][j + x + 1] <= w) ^ user.cpp: In function ‘int main()’: user.cpp:26:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("plantatii.in", "r", stdin); ^ user.cpp:27:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("plantatii.out", "w", stdout); ^ user.cpp:28:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &T); ^ user.cpp:31:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %lld\n", &n, &w); ^ user.cpp:36:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccYktkiJ.o: In function `main': user.cpp:(.text.startup+0xbd): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
11264ms22256kbTe-am blatuit!0
Punctaj total0

Ceva nu functioneaza?