Borderou de evaluare (job #2023267)

Utilizator Theodor1000Cristea Theodor Stefan Theodor1000 Data 18 septembrie 2017 17:38:12
Problema Zeap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:144:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("zeap.in", "r", stdin); ^ user.cpp:145:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("zeap.out", "w", stdout); ^ user.cpp:154:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%c", &op); ^ user.cpp:156:56: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] if (op == 'M') scanf ("%c", &aa), scanf ("%c", &aa); ^ user.cpp:156:56: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:157:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] else scanf ("%d", &va); ^ user.cpp:185:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("\n%c", &op); ^ user.cpp:187:60: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] if (op == 'M') scanf ("%c", &aa), scanf ("%c", &aa); ^ user.cpp:187:60: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:188:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] else scanf ("%d", &va); ^ user.cpp: In function ‘int sterge(treap*&, int)’: user.cpp:130:12: warning: ‘ans’ may be used uninitialized in this function [-Wmaybe-uninitialized] return ans; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK10
28ms336kbOK10
372ms780kbOK10
4104ms1204kbOK10
5212ms1948kbOK10
6336ms2896kbOK10
7604ms5628kbOK10
8540ms3400kbOK10
9256ms908kbOK10
10628ms5644kbOK10
Punctaj total100

Ceva nu functioneaza?