2

私は問題を見つけることができません、誰かが解決策を知っていますか?

コード

#include <algorithm>‎
int main(int argc, char* argv[]) {
    return 0;
}

警告

extra tokens at end of #include directive [enabled by default]
4

1 に答える 1

12

Looking at the code quoted above using od -c gives this output:

0000000    #   i   n   c   l   u   d   e       <   a   l   g   o   r   i
0000020    t   h   m   > 342 200 216  \n   i   n   t       m   a   i   n
0000040    (   i   n   t       a   r   g   c   ,       c   h   a   r   *
0000060        a   r   g   v   [   ]   )       {  \n                   r
0000100    e   t   u   r   n       0   ;  \n   }  \n   

Note the bytes between the > and the \n: You probably want to get rid of them.

于 2013-09-24T21:07:15.337 に答える