Pagini recente » Borderou de evaluare (job #436260) | Borderou de evaluare (job #2646712) | Borderou de evaluare (job #360438) | Borderou de evaluare (job #2982437) | Borderou de evaluare (job #2640080)
Borderou de evaluare (job #2640080)
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 |
1 | 45ms | 524kb | Corect | 10 |
2 | 3ms | 131kb | Corect | 10 |
3 | 3ms | 131kb | Corect | 10 |
4 | 4ms | 131kb | Corect | 10 |
5 | 3ms | 131kb | Corect | 10 |
6 | 3ms | 131kb | Corect | 10 |
7 | 6ms | 131kb | Corect | 10 |
8 | 101ms | 393kb | Time limit exceeded | 0 |
9 | 7ms | 262kb | Corect | 10 |
10 | 14ms | 262kb | Corect | 10 |
Punctaj total | 90 |