Borderou de evaluare (job #2640080)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 4 august 2020 23:13:53
Problema Mesaje Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:30:11: warning: this 'else' clause does not guard... [-Wmisleading-indentation] } else ^~~~ main.cpp:33:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' while( !feof( stdin ) ){ ^~~~~ main.cpp:43:28: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] else if( !lit( aux[ i ] ) && lit( aux[ i - 1 ] ) ) ^ main.cpp:40:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for( i = 1; aux[ i ]; ++i ) ^~~ main.cpp:52:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if( !lit( aux[ i ] ) && lit( aux[ i - 1 ] ) ) ^~ main.cpp:52:23: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if( !lit( aux[ i ] ) && lit( aux[ i - 1 ] ) ) ^ main.cpp:22:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("mesaje.in","r",stdin); ^ main.cpp:23:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("mesaje.out","w",stdout); ^ main.cpp:24:39: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets( m + 1, sizeof( m ), stdin ); ^ main.cpp:35:55: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets( aux + 1, sizeof( aux ), stdin ); ^ In file included from /usr/include/stdio.h:936:0, from /usr/include/c++/6/cstdio:42, from main.cpp:1: In function 'char* fgets(char*, int, FILE*)', inlined from 'int main()' at main.cpp:24:39: /usr/include/x86_64-linux-gnu/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 main.cpp:35:55: /usr/include/x86_64-linux-gnu/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
145ms524kbCorect10
23ms131kbCorect10
33ms131kbCorect10
44ms131kbCorect10
53ms131kbCorect10
63ms131kbCorect10
76ms131kbCorect10
8101ms393kbTime limit exceeded0
97ms262kbCorect10
1014ms262kbCorect10
Punctaj total90

Ceva nu functioneaza?