Mã chấm: 14135


Main.cc: In function ‘int main()’:
Main.cc:3:5: error: ‘cin’ was not declared in this scope
     cin >> n;
     ^~~
Main.cc:8:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
             if (j >= 0 && j % 4 == 0 || j % 7 == 0 || j % 11 == 0) {
                 ~~~~~~~^~~~~~~~~~~~~
Main.cc:12:9: error: ‘cout’ was not declared in this scope
         cout << cnt << endl;
         ^~~~
Main.cc:12:9: note: suggested alternative: ‘cnt’
         cout << cnt << endl;
         ^~~~
         cnt
Main.cc:12:24: error: ‘endl’ was not declared in this scope
         cout << cnt << endl;
                        ^~~~
Main.cc:12:24: note: suggested alternative: ‘enum’
         cout << cnt << endl;
                        ^~~~
                        enum
Main.cc:15:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
             if (j >= 0 && j % 4 == 0 || j % 7 == 0 || j % 11 == 0) {
                 ~~~~~~~^~~~~~~~~~~~~