ReTai-Hieu's blog

By ReTai-Hieu, history, 16 months ago, In English

my code

#include<bits/stdc++.h>
#define ii pair <int,int>
#define fi first
#define se second
#define int long long
#define double long double
#define endl '\n'
#define all(x) x.begin(), x.end()
using namespace std;

signed main(){
    //freopen("input.INP", "r", stdin);
    //freopen("output.OUT", "w", stdout);
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    cout << 100 << endl;
    return 0;
}

I use g++11 and vscode

That warning doesn't affect me if I run the code normally, but since I use CPH to compile it will stop my program and not run the test cases.

How to fix it

I dont know why, but the problem is I use Command Line Tools for Xcode 15. I have tried to install Command Line Tools for Xcode 14.3.1 then it works fine now

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
16 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by ReTai-Hieu (previous revision, new revision, compare).

»
16 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by ReTai-Hieu (previous revision, new revision, compare).

»
16 months ago, # |
  Vote: I like it -9 Vote: I do not like it

you're such a weeb grow up