fork(2) download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cassert>
  4. #include <cstdio>
  5. #include <climits>
  6. #include <iomanip>
  7. #include <cmath>
  8. #include <ctime>
  9. #include <map>
  10. #include <set>
  11. #include <vector>
  12. #include <stack>
  13. #include <queue>
  14. #include <cstring>
  15. #include <string>
  16. #include <utility>
  17. #include <sstream>
  18. #include <numeric>
  19. #include <functional>
  20. #include <bitset>
  21. #include <deque>
  22. #include <complex>
  23.  
  24. using namespace std;
  25.  
  26. #if __cplusplus >= 201103
  27. #include <unordered_map>
  28. #include <future>
  29. #include <atomic>
  30. #include <chrono>
  31. #include <unordered_set>
  32. #include <array>
  33. #include <random>
  34. #include <mutex>
  35. #endif
  36.  
  37. #define pii pair<ll, ll>
  38.  
  39. #define pb push_back
  40. #define eb emplace_back
  41. #define mp make_pair
  42.  
  43. #define fi first
  44. #define se second
  45.  
  46. typedef long long ll;
  47. typedef long double ld;
  48.  
  49. const int inf = (int)1e9 + 7;
  50. const int maxn = (int)2e5 + 7;
  51. const int lmaxn = (int)1e6 + 7;
  52. const ll linf = (ll)1e16 + 7;
  53.  
  54. const ld eps = ld(1e-11);
  55.  
  56. struct A{
  57. int x, y;
  58. A(){}
  59. ~A(){}
  60. };
  61.  
  62. main(){
  63. A f = {1, 2};
  64. return 0;
  65. }
  66.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:63:16: error: could not convert '{1, 2}' from '<brace-enclosed initializer list>' to 'A'
     A f = {1, 2};
                ^
stdout
Standard output is empty