Borderou de evaluare (job #1848059)

Utilizator LucianTLucian Trepteanu LucianT Data 15 ianuarie 2017 14:12:12
Problema Minerale Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:32:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10]’ [-Wformat=] scanf("%s %s\n",&a,&b); ^ user.cpp:32:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[10]’ [-Wformat=] user.cpp:27:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("minerale.in","r",stdin); ^ user.cpp:28:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("minerale.out","w",stdout); ^ user.cpp:29:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&n,&m); ^ user.cpp:32:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s %s\n",&a,&b); ^ user.cpp:39:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str+1); ^ /tmp/ccgK1tQA.o: In function `main': user.cpp:(.text.startup+0x21d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms432kbOK10
20ms436kbOK10
38ms464kbOK10
440ms472kbOK10
5104ms468kbOK10
636ms448kbOK10
736ms448kbOK10
8176ms468kbOK10
9160ms472kbOK10
10276ms472kbOK10
Punctaj total100

Ceva nu functioneaza?