Borderou de evaluare (job #1752825)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 5 septembrie 2016 13:04:25
Problema Poveste Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:42:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] cnt[ ++K[ a[lin][ ord[i] ] ] ][ a[lin][ ord[i] ] ] = i; ^ user.cpp:42:66: warning: array subscript has type ‘char’ [-Wchar-subscripts] cnt[ ++K[ a[lin][ ord[i] ] ] ][ a[lin][ ord[i] ] ] = i; ^ user.cpp:18:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("poveste.in", "r", stdin); ^ user.cpp:19:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("poveste.out", "w", stdout); ^ user.cpp:23:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:26:32: 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:29:27: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i] + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:29:27: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccBt7OSp.o: In function `main': user.cpp:(.text.startup+0xa5): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms524kbOK1020
20ms516kbOK10
332ms772kbOK1020
432ms728kbOK10
592ms964kbOK1020
688ms968kbOK10
7136ms1072kbOK1010
8196ms1164kbOK1030
9360ms1460kbOK10
10360ms1456kbOK10
Punctaj total100

Ceva nu functioneaza?