Pagini recente »
Borderou de evaluare (job #502557)
|
Borderou de evaluare (job #604633)
Borderou de evaluare (job #604633)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:10:20: warning: format '%d' expects a matching 'int*' argument [-Wformat=]
10 | fscanf(in, "%d%d", &n);
| ~^
| |
| int*
main.cpp:8:9: warning: unused variable 'h' [-Wunused-variable]
8 | int h,n,i,x,c1,c2,sr=1,s=0,fx;
| ^
main.cpp:8:17: warning: unused variable 'c1' [-Wunused-variable]
8 | int h,n,i,x,c1,c2,sr=1,s=0,fx;
| ^~
main.cpp:8:20: warning: unused variable 'c2' [-Wunused-variable]
8 | int h,n,i,x,c1,c2,sr=1,s=0,fx;
| ^~
main.cpp:9:9: warning: unused variable 'ok' [-Wunused-variable]
9 | int ok=0;
| ^~
main.cpp:10:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(in, "%d%d", &n);
| ~~~~~~^~~~~~~~~~~~~~~~
main.cpp:13:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(in, "%d", &x);
| ~~~~~~^~~~~~~~~~~~~~
main.cpp:14:9: warning: 'fx' may be used uninitialized in this function [-Wmaybe-uninitialized]
14 | if(fx<x){
| ^~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
131 kb
|
Killed by Signal 11
|
0
|
2
|
1 ms
|
131 kb
|
Killed by Signal 11
|
0
|
3
|
1 ms
|
131 kb
|
Killed by Signal 11
|
0
|
4
|
1 ms
|
131 kb
|
Killed by Signal 11
|
0
|
5
|
1 ms
|
131 kb
|
Killed by Signal 11
|
0
|
6
|
1 ms
|
131 kb
|
Killed by Signal 11
|
0
|
7
|
1 ms
|
131 kb
|
Killed by Signal 11
|
0
|
8
|
2 ms
|
131 kb
|
Killed by Signal 11
|
0
|
9
|
1 ms
|
131 kb
|
Killed by Signal 11
|
0
|
10
|
1 ms
|
131 kb
|
Killed by Signal 11
|
0
|
Punctaj total
|
0
|