Pagini recente » Borderou de evaluare (job #2099952) | Borderou de evaluare (job #128946) | Borderou de evaluare (job #2400117) | Borderou de evaluare (job #319812) | Borderou de evaluare (job #1820304)
Borderou de evaluare (job #1820304)
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 |
1 | 72ms | 7008kb | OK | 10 |
2 | 48ms | 7084kb | OK | 10 |
3 | 480ms | 8796kb | OK | 10 |
4 | 416ms | 8748kb | OK | 10 |
5 | 392ms | 8808kb | OK | 10 |
6 | 384ms | 8904kb | OK | 10 |
7 | 396ms | 8924kb | OK | 10 |
8 | 444ms | 8920kb | OK | 10 |
9 | 404ms | 8916kb | OK | 10 |
10 | 392ms | 8928kb | OK | 10 |
Punctaj total | 100 |