|
|
вернуться в форумWrong answer 1 #include <stdio.h> main(){ int a,b; freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); scanf("%d %d",&a, &b); printf("%d",a+b); } Why I had wrong answer? In Visual Studio working perfectly! Edited by author 17.03.2012 19:46 Edited by author 17.03.2012 19:46 Re: Wrong answer 1 #include <stdio.h> int main() { #ifndef ONLINE_JUDGE freopen("input.txt", "rt", stdin); freopen("output.txt", "wt", stdout); #endif int a, b; scanf("%d%d", &a, &b); printf("%d\n", a + b); return 0; } |
|
|