Borderou de evaluare (job #1752816)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 5 septembrie 2016 12:44:32
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:74:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] cnt[ ++K[ a[lin][ ord[i] ] ] ][ a[lin][ ord[i] ] ] = i; ^ user.cpp:74:66: warning: array subscript has type ‘char’ [-Wchar-subscripts] cnt[ ++K[ a[lin][ ord[i] ] ] ][ a[lin][ ord[i] ] ] = i; ^ user.cpp:30: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:31: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:55:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:58: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:61: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:61: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/ccmLTqPz.o: In function `main': user.cpp:(.text.startup+0xeb): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms540kbOK1020
20ms536kbOK10
372ms812kbOK1020
480ms776kbOK10
5212ms1032kbOK1020
6208ms1036kbOK10
7340ms1136kbOK1010
8492ms1248kbOK1030
9900ms1556kbOK10
10900ms1548kbOK10
Punctaj total100

Ceva nu functioneaza?