Borderou de evaluare (job #2698509)

Utilizator cyg_SerbanBFlorin Gheorghe cyg_SerbanB Data 22 ianuarie 2021 12:21:35
Problema Senat Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'bool cuplaj(int)': main.cpp:16:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<adc[nod].size();++i) ~^~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:27:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("senat.in","r",stdin); ^ main.cpp:28:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("senat.out","w",stdout); ^ main.cpp:29:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&n,&m); ^ main.cpp:36:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&ch); ^ main.cpp:45:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&ch); ^ main.cpp: In function 'void zero()': main.cpp:9:15: warning: iteration 10004 invokes undefined behavior [-Waggressive-loop-optimizations] viz[i]=0; ~~~~~~^~ main.cpp:8:18: note: within this loop for(int i=1;i<=10005;++i) ~^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms393kbS-a respectat legea!10
23ms393kbS-a respectat legea!10
33ms393kbS-a respectat legea!10
43ms393kbS-a respectat legea!10
55ms393kbS-a respectat legea!10
65ms393kbS-a respectat legea!10
75ms393kbS-a respectat legea!10
85ms393kbS-a respectat legea!10
93ms393kbS-a respectat legea!10
104ms393kbS-a respectat legea!10
Punctaj total100

Ceva nu functioneaza?