Borderou de evaluare (job #1820304)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 1 decembrie 2016 16:06:33
Problema Sir8 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void read_data()’: user.cpp:177:31: warning: NULL used in arithmetic [-Wpointer-arith] for(int i = 1; text[i] != NULL; i++) { ^ user.cpp:174:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(text + 1); ^ user.cpp:183:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &K); ^ user.cpp:185:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", word + 1); ^ user.cpp: In function ‘void process_queries()’: user.cpp:198:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int Q; scanf("%d", &Q); ^ user.cpp:203:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int type; scanf("%d", &type); ^ user.cpp:208:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %c %d%d", &pos, &c, &a, &b); ^ user.cpp:219:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d", &pos, &ind, &a, &b); ^ /tmp/ccZbITI0.o: In function `read_data()': user.cpp:(.text+0x557): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
172ms7008kbOK10
248ms7084kbOK10
3480ms8796kbOK10
4416ms8748kbOK10
5392ms8808kbOK10
6384ms8904kbOK10
7396ms8924kbOK10
8444ms8920kbOK10
9404ms8916kbOK10
10392ms8928kbOK10
Punctaj total100

Ceva nu functioneaza?