fork download
  1. // Long Challenge
  2.  
  3. #pragma Gpref optimize("O3")
  4. //#pragma Gpref optimize("Ofast")
  5. //#pragma Gpref target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
  6. //#pragma Gpref optimize("unroll-loops")
  7. #include <bits/stdc++.h>
  8. #define int long long
  9. #define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
  10. #define FR(i,j,k) for(int i=j; i<k; i++)
  11. #define TC int T; cin >> T; FR(t,0,T)
  12. #define BFR(i,j,k) for(int i=j; i>=k; --i)
  13. #define pb push_back
  14. #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
  15. #define go continue
  16. #define F first
  17. #define S second
  18. using namespace std;
  19.  
  20. const int MOD = (int)1e9+7;
  21. const int N = 1e5+5;
  22.  
  23. int32_t main(){
  24. IOS;
  25.  
  26. TC{
  27. int a, b, c;
  28. cin >> a >> b >> c;
  29. int sum = a + 2*b + 3*c;
  30. cout << ((sum % 9 == 0)?"YES":"NO" << '\n';
  31.  
  32. }
  33. return 0;
  34. }
  35.  
  36.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int32_t main()’:
prog.cpp:30:38: error: invalid operands of types ‘const char [3]’ and ‘char’ to binary ‘operator<<’
  cout << ((sum  % 9 == 0)?"YES":"NO" << '\n';
                                 ~~~~~^~~~~~~
prog.cpp:30:45: error: expected ‘)’ before ‘;’ token
  cout << ((sum  % 9 == 0)?"YES":"NO" << '\n';
          ~                                  ^
                                             )
stdout
Standard output is empty