Borderou de evaluare (job #586134)

Utilizator avatar andrei_marciuc Marciuc Andrei andrei_marciuc IP ascuns
Problemă 235 (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 14 mar. 2021 23:56:52 Scor 40

Raport evaluator

Compilare: main.cpp:9:11: warning: built-in function 'pow' declared as non-function [-Wbuiltin-declaration-mismatch] 9 | long long pow[ NO_POW ]; | ^~~ main.cpp: In function 'long long int ok(long long int)': main.cpp:43:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 43 | if( pow[ sol ] == val ) | ^ main.cpp: In function 'int main()': main.cpp:55:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 55 | fscanf( fin, "%lld", &n ); | ~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:59:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 59 | fscanf( fin, "%lld", &x ); | ~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void make_pow_2()': main.cpp:28:18: warning: iteration 15 invokes undefined behavior [-Waggressive-loop-optimizations] 28 | pow2[ poz++ ] = p2; | ~~~^~ main.cpp:27:15: note: within this loop 27 | while( p2 < MAX ){ | ~~~^~~~~ main.cpp: In function 'int main()': main.cpp:28:18: warning: iteration 15 invokes undefined behavior [-Waggressive-loop-optimizations] 28 | pow2[ poz++ ] = p2; | ~~~^~ main.cpp:27:15: note: within this loop 27 | while( p2 < MAX ){ | ~~~^~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 262 kb OK 10
2 1 ms 262 kb OK 10
3 1 ms 262 kb OK 10
4 1 ms 262 kb OK 10
5 77 ms 651 kb Incorect 0
6 71 ms 520 kb Incorect 0
7 46 ms 524 kb Incorect 0
8 248 ms 524 kb Incorect 0
9 313 ms 655 kb Incorect 0
10 335 ms 651 kb Incorect 0
Punctaj total 40