#include <stdio.h>
int main( void ) {
int t, s;
int i, j;
long int moments[ s] , cookingtime[ s] , comparison[ s] ;
for ( i= 0 ; i< t; i++ ) {
for ( j= 0 ; j< 1 ; j++ ) {
scanf ( "%ld" , & moments
[ j
] ) ; comparison[ j] = moments[ j] ;
scanf ( "%ld" ,& cookingtime
[ j
] ) ; } for ( j= 1 ; j< s; j++ ) {
scanf ( "%ld" , & moments
[ j
] ) ; comparison[ j] = ( moments[ j] - moments[ j- 1 ] ) ;
scanf ( "%ld" ,& cookingtime
[ j
] ) ; } long int count= 0 ;
for ( j= 0 ; j< s; j++ ) {
if ( comparison[ j] >= cookingtime[ j] ) { count++; }
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CmludCB0LHM7CnNjYW5mKCIlZCIsJnQpOyBzY2FuZigiJWxkIiwgJnMpOwppbnQgaSxqOwpsb25nIGludCBtb21lbnRzW3NdLGNvb2tpbmd0aW1lW3NdLGNvbXBhcmlzb25bc107CmZvcihpPTA7aTx0O2krKykgewoJZm9yKGo9MDtqPDE7aisrKSB7CgkJc2NhbmYoIiVsZCIsICZtb21lbnRzW2pdKTsgCgkJY29tcGFyaXNvbltqXT1tb21lbnRzW2pdOwoJCXNjYW5mKCIlbGQiLCZjb29raW5ndGltZVtqXSk7IH0KICAgIGZvcihqPTE7ajxzO2orKykgewogICAgCXNjYW5mKCIlbGQiLCAmbW9tZW50c1tqXSk7IAogICAgCWNvbXBhcmlzb25bal09KG1vbWVudHNbal0tbW9tZW50c1tqLTFdKTsKICAgIAlzY2FuZigiJWxkIiwmY29va2luZ3RpbWVbal0pOyB9CiAgICAJbG9uZyBpbnQgY291bnQ9MDsKZm9yKGo9MDtqPHM7aisrKSB7CglpZihjb21wYXJpc29uW2pdPj1jb29raW5ndGltZVtqXSkgeyBjb3VudCsrOyB9Cn0KCXByaW50ZigiJWxkIFxuIixjb3VudCk7Cn0J
compilation info
prog.c: In function 'main':
prog.c:5:23: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'int *' [-Wformat=]
scanf("%d",&t); scanf("%ld", &s);
^
prog.c:22:1: error: expected declaration or statement at end of input
}
^
stdout