Job 15710

Owner
Szabó Károly
Problem
Byte Trains
Contest
MindCoding 2016 Round 3 (Div. 1)
Source
0.52KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:14:20: warning: comparison with string literal results in unspecified behaviour [-Waddress]
   while (v[ind] == "0") {
                    ^
prog.cpp:14:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
prog.cpp:21:16: warning: comparison with string literal results in unspecified behaviour [-Waddress]
    if (v[0] != "0") {
                ^
prog.cpp:21:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]

Questions?

Sponsors Gold