Pagini recente »
Borderou de evaluare (job #824796)
|
Borderou de evaluare (job #223226)
|
Clasament vacanta6
|
Borderou de evaluare (job #621349)
|
Borderou de evaluare (job #796347)
Borderou de evaluare (job #796347)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:61:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
61 | fscanf(fin,"%d",&n);
| ~~~~~~^~~~~~~~~~~~~
main.cpp:83:10: warning: pointer 'fin' may be used after 'int fclose(FILE*)' [-Wuse-after-free]
83 | fprintf( fin, "%d ", cnt );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:62:9: note: call to 'int fclose(FILE*)' here
62 | fclose(fin);
| ~~~~~~^~~~~
In file included from /usr/include/stdio.h:970,
from main.cpp:1:
In function 'int fprintf(FILE*, const char*, ...)',
inlined from 'int main()' at main.cpp:83:10:
/usr/include/bits/stdio2.h:111:24: warning: pointer used after 'int fclose(FILE*)' [-Wuse-after-free]
111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
112 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:62:9: note: call to 'int fclose(FILE*)' here
62 | fclose(fin);
| ~~~~~~^~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
507 kb
|
OK
|
10
|
2
|
39 ms
|
270 kb
|
OK
|
10
|
3
|
9 ms
|
249 kb
|
OK
|
10
|
4
|
1 ms
|
249 kb
|
OK
|
10
|
5
|
1 ms
|
245 kb
|
OK
|
10
|
6
|
1 ms
|
507 kb
|
OK
|
10
|
7
|
39 ms
|
270 kb
|
OK
|
10
|
8
|
1 ms
|
245 kb
|
OK
|
10
|
9
|
9 ms
|
249 kb
|
OK
|
10
|
10
|
39 ms
|
249 kb
|
OK
|
10
|
Punctaj total
|
100
|