#2925. C++-编译-warning: comparison of unsigned expression < 0...

C++-编译-warning: comparison of unsigned expression < 0...

Background

Description

6.warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    (void)argc,(void)argv;
    uint32_t a=1;
    if( a<0 ){
        cout << "Hello World!" << endl;
    }
    return 0;
}

warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
     if( a<0 ){
          ^

Format

Input

Output

Samples



Limitation

1s, 1024KiB for each test case.