Borderou de evaluare (job #2257363)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 9 octombrie 2018 23:26:01
Problema Incantatii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] arr[i] = (arr[i] << 6) ^ hsh[str[j]]; } ^ user.cpp:14:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("incantatii.in", "r", stdin); ^ user.cpp:15:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("incantatii.out", "w", stdout); ^ user.cpp:16:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int n; scanf("%d", &n); ^ user.cpp:21:34: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(str + 1, 10, stdin); ^ user.cpp:22:34: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(str + 1, 10, stdin); ^ In file included from /usr/include/stdio.h:936:0, from /usr/include/c++/6/cstdio:42, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:46, from user.cpp:1: In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:21:34: /usr/include/bits/stdio2.h:261:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^ In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:22:34: /usr/include/bits/stdio2.h:261:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms1648kbKilled by signal 6(SIGABRT).0
24ms1644kbKilled by signal 6(SIGABRT).0
34ms1644kbKilled by signal 6(SIGABRT).0
44ms1644kbKilled by signal 6(SIGABRT).0
54ms1648kbKilled by signal 6(SIGABRT).0
64ms1648kbKilled by signal 6(SIGABRT).0
74ms1648kbKilled by signal 6(SIGABRT).0
84ms1644kbKilled by signal 6(SIGABRT).0
94ms1644kbKilled by signal 6(SIGABRT).0
104ms1648kbKilled by signal 6(SIGABRT).0
114ms1652kbKilled by signal 6(SIGABRT).0
124ms1648kbKilled by signal 6(SIGABRT).0
134ms1648kbKilled by signal 6(SIGABRT).0
144ms1648kbKilled by signal 6(SIGABRT).0
154ms1644kbKilled by signal 6(SIGABRT).0
164ms1648kbKilled by signal 6(SIGABRT).0
174ms1648kbKilled by signal 6(SIGABRT).0
184ms1648kbKilled by signal 6(SIGABRT).0
194ms1644kbKilled by signal 6(SIGABRT).0
204ms1648kbKilled by signal 6(SIGABRT).0
Punctaj total0

Ceva nu functioneaza?