Borderou de evaluare (job #2563648)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 1 martie 2020 13:09:35
Problema Seif Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:27:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d\n",&t); ^ main.cpp:31:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d\n",&k); ^ main.cpp:32:32: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(a + 1,NMAX + 5,f);len_a = strlen(a + 1);len_a -= (a[len_a] == '\n'); ^ main.cpp:33:32: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(b + 1,NMAX + 5,f);len_b = strlen(b + 1);len_b -= (b[len_b] == '\n'); ^ In file included from /usr/include/stdio.h:936:0, from /usr/include/c++/6/cstdio:42, from main.cpp:1: In function 'char* fgets(char*, int, FILE*)', inlined from 'int main()' at main.cpp:32:32: /usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^ In function 'char* fgets(char*, int, FILE*)', inlined from 'int main()' at main.cpp:33:32: /usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms262kbOK10
23ms524kbOK10
312ms1179kbOK10
437ms2228kbOK10
575ms3276kbOK10
685ms3538kbOK10
7100ms3932kbTime limit exceeded0
8101ms4325kbTime limit exceeded0
9100ms4325kbTime limit exceeded0
10101ms4325kbTime limit exceeded0
Punctaj total60

Ceva nu functioneaza?