Borderou de evaluare (job #68651)

Utilizator avatar rpdstrike Puscasu Felix rpdstrike IP ascuns
Problemă Romb (clasa a 6-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 17 apr. 2014 16:24:15 Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:12:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | freopen("romb.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:13:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | freopen("romb.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:15:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | scanf("%d\n", &N ); | ~~~~~^~~~~~~~~~~~~ main.cpp:22:26: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:24:26: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:27:56: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | for( int j= dr1+1; j<=N; ++j ) scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:32:53: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 32 | for( int j= 1; j<st1; ++j ) scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:35:26: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 35 | scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:39:57: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 39 | for( int j= dr1+1; j<=N; ++j ) scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:46:53: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 46 | for( int j= 1; j<st2; ++j ) scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:48:26: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 48 | scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:51:54: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | for( int j= dr2+1; j<N; ++j ) scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:58:53: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 58 | for( int j= 1; j<st2; ++j ) scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:61:26: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 61 | scanf("%c",&ch); | ~~~~~^~~~~~~~~~ main.cpp:64:55: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 64 | for( int j= dr2+1; j<N; ++j ) scanf("%c",&ch); | ~~~~~^~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 507 kb OK 10
2 1 ms 266 kb Incorect 0
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 529 ms 1019 kb OK 10
6 549 ms 1232 kb Incorect 0
7 609 ms 1241 kb OK 10
8 599 ms 1204 kb Incorect 0
9 669 ms 1105 kb OK 10
10 629 ms 1122 kb Incorect 0
Punctaj total 60