Job 11988

Owner
Lucian Bicsi
Problem
Golf
Source
0.27KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:11:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'double*' [-Wformat=]
     while(scanf("%d%d", &a, &b) == 2) {
                               ^
prog.cpp:11:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'double*' [-Wformat=]
prog.cpp:12:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
         printf("%d%d\n", -a, -b);
                                ^
prog.cpp:12:32: warning: format '%d' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]

Results

Test numberResultTime
1Wrong answer0.2286s
Questions?

Sponsors Gold