Job 17684

Owner
Stoica Alexandru Stefan
Problem
Flip
Source
1.96KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:130:27: warning: value computed is not used [-Wunused-value]
     query(xf, p, 1, N, 1) == x*(p - xf + 1);
                           ^
prog.cpp:134:37: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int*' [-Wformat=]
    printf("%d %d %d\n", &x, &l1, &r1);
                                     ^
prog.cpp:134:37: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int*' [-Wformat=]
prog.cpp:134:37: warning: format '%d' expects argument of type 'int', but argument 4 has type 'int*' [-Wformat=]
prog.cpp:120:8: warning: variable 'l' set but not used [-Wunused-but-set-variable]
    int l = p, r = N;
        ^
prog.cpp:120:15: warning: variable 'r' set but not used [-Wunused-but-set-variable]
    int l = p, r = N;
               ^
prog.cpp:127:8: warning: unused variable 'nr' [-Wunused-variable]
    int nr = 0;
        ^

Results

Test numberResultTime
1Wrong answer1.1470s
Questions?

Sponsors Gold