ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1336. Problem of Ben Betsalel

gcc vs ms vc
Posted by ssau_nazarov_yuriy_pavlovich 15 Mar 2013 14:17
#include <stdio.h>

int main(){
    long long int t;
    scanf("%lld", &t);
    printf("%lld\n%lld", t*t, t);
    return 0;
}

AC with MS VC, but WA 1 with GCC.
Can anybody explain me what's wrong with my code?
Re: gcc vs ms vc
Posted by Andrey Lopukhov 12 Jul 2013 19:50
u should use %i64d instead %lld with GCC ;)

Edited by author 12.07.2013 19:50