Borderou de evaluare (job #2532068)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 27 ianuarie 2020 11:39:59
Problema Minerale Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void baga()': main.cpp:50:23: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(c + 1,105,f); ^ main.cpp: In function 'int main()': main.cpp:87:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d\n",&r,&m); ^ main.cpp:94:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c %c",&c1,&c2); ^ main.cpp:97:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"\n"); ^ main.cpp:101:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c\n",&c3); ^ 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 'void baga()' at main.cpp:50:23: /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
12ms131kbOK10
22ms131kbOK10
332ms131kbOK10
494ms131kbOK10
5209ms131kbOK10
686ms131kbOK10
789ms131kbOK10
8367ms131kbOK10
9378ms131kbOK10
10529ms131kbOK10
Punctaj total100

Ceva nu functioneaza?