priglvaci.cpp: In function 'int main()':
priglvaci.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%lld",&m);
| ~~~~~^~~~~~~~~~~
priglvaci.cpp:21:23: warning: iteration 2999 invokes undefined behavior [-Waggressive-loop-optimizations]
21 | jsa[i]+=jsa[i-1],jsb[i]+=jsb[i-1];
| ~~~~~~^~~~~~~~~~
priglvaci.cpp:20:23: note: within this loop
20 | for(int i=1; i<=3000; i++)
| ~^~~~~~
priglvaci.cpp:25:25: warning: iteration 2999 invokes undefined behavior [-Waggressive-loop-optimizations]
25 | if(jsa[i]>jsb[i] && jsa[i-1]==jsb[i-1] && ld==2)
| ~~~~~^
priglvaci.cpp:23:23: note: within this loop
23 | for(int i=1; i<=3000; i++)
| ~^~~~~~