제출 #7686

#제출 시각아이디문제언어결과실행 시간메모리
7686gs13068CATS (NOI14_cats)C++98
컴파일 에러
0 ms0 KiB
#include<cstdio> int main() { int TC; scanf("%d",&TC); while(TC--) { long long K,X,L,N,C; scanf("%lld%lld%lld",&X,&L,&N); X=X-1; K=(L+2*N-1)/(2*N); for(T=K/(2*N)+1;X>0&&T>0;X>>=1)C^=X&1; printf("%lld\n",K+C); } }

컴파일 시 표준 에러 (stderr) 메시지

cats.cpp: In function 'int main()':
cats.cpp:13:13: error: 'T' was not declared in this scope
cats.cpp:6:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
cats.cpp:10:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]