Borderou de evaluare (job #1752811)

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

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/cc0BaFXm.o: In function `main': user.cpp:(.text.startup+0xd9): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms548kbOK100
20ms540kbIncorect0
372ms808kbOK1020
480ms772kbOK10
5212ms1036kbOK1020
6208ms1028kbOK10
7336ms1136kbOK1010
8488ms1252kbOK1030
9896ms1548kbOK10
10900ms1552kbOK10
Punctaj total80

Ceva nu functioneaza?