fork download
  1. #include <bits/stdc++.h>
  2.  
  3. #pragma GCC optimize("Ofast")
  4. #pragma GCC target("sse,sse2,sse3,ssse3,sse4")
  5.  
  6. #define ll long long
  7. #define f first
  8. #define s second
  9. #define pb push_back
  10. #define mp make_pair
  11. #define o cout<<"BUG"<<endl;
  12. #define IOS ios_base::sync_with_stdio(0);
  13. #define en "\n"
  14. #define FOR(i, j, n) for(int j = i; j < n; ++j)
  15. #define forn(i, j, n) for(int j = i; j <= n; ++j)
  16. #define nfor(i, j, n) for(int j = n; j >= i; --j)
  17. #define sortv(vv) sort(vv.begin(), vv.end())
  18.  
  19. using namespace std;
  20. int block;
  21. const ll maxn=1e4+100,inf=1e18,LOG=20,mod=1e9+7;
  22.  
  23. #define int ll
  24.  
  25. int n, dp[maxn][maxn];
  26.  
  27. main()
  28. {
  29. cin >> n;
  30. forn(1, i, n)
  31. {
  32. dp[i][i] = 1;
  33. int sum = 0;
  34. forn(1, j, n)
  35. {
  36. if(i + j > n) break;
  37. dp[i + j][j] += sum;
  38. dp[i + j][j] %= mod;
  39. sum += dp[i][j];
  40. sum %= mod;
  41. }
  42. }
  43. int sum = 0;
  44. forn(1, i, n)
  45. {
  46. sum += dp[n][i];
  47. sum %= mod;
  48. }
  49. cout << sum;
  50. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, or enum expected
#include <bits/stdc++.h>
         ^
Main.java:3: error: illegal character: '#'
#pragma GCC optimize("Ofast")
^
Main.java:4: error: illegal character: '#'
#pragma GCC target("sse,sse2,sse3,ssse3,sse4")
^
Main.java:6: error: illegal character: '#'
#define ll long long
^
Main.java:7: error: illegal character: '#'
#define f first
^
Main.java:8: error: illegal character: '#'
#define s second
^
Main.java:9: error: illegal character: '#'
#define pb push_back
^
Main.java:10: error: illegal character: '#'
#define mp make_pair
^
Main.java:11: error: illegal character: '#'
#define o cout<<"BUG"<<endl;
^
Main.java:12: error: illegal character: '#'
#define	IOS ios_base::sync_with_stdio(0);
^
Main.java:12: error: class, interface, or enum expected
#define	IOS ios_base::sync_with_stdio(0);
       	^
Main.java:13: error: illegal character: '#'
#define en "\n"
^
Main.java:13: error: class, interface, or enum expected
#define en "\n"
        ^
Main.java:14: error: illegal character: '#'
#define FOR(i, j, n) for(int j = i; j < n; ++j)
^
Main.java:14: error: class, interface, or enum expected
#define FOR(i, j, n) for(int j = i; j < n; ++j)
                                    ^
Main.java:14: error: class, interface, or enum expected
#define FOR(i, j, n) for(int j = i; j < n; ++j)
                                           ^
Main.java:15: error: illegal character: '#'
#define forn(i, j, n) for(int j = i; j <= n; ++j)
^
Main.java:15: error: class, interface, or enum expected
#define forn(i, j, n) for(int j = i; j <= n; ++j)
                                     ^
Main.java:15: error: class, interface, or enum expected
#define forn(i, j, n) for(int j = i; j <= n; ++j)
                                             ^
Main.java:16: error: illegal character: '#'
#define nfor(i, j, n) for(int j = n; j >= i; --j)
^
Main.java:16: error: class, interface, or enum expected
#define nfor(i, j, n) for(int j = n; j >= i; --j)
                                     ^
Main.java:16: error: class, interface, or enum expected
#define nfor(i, j, n) for(int j = n; j >= i; --j)
                                             ^
Main.java:17: error: illegal character: '#'
#define sortv(vv) sort(vv.begin(), vv.end())
^
Main.java:20: error: class, interface, or enum expected
int block;
^
Main.java:21: error: class, interface, or enum expected
const ll maxn=1e4+100,inf=1e18,LOG=20,mod=1e9+7;
^
Main.java:23: error: illegal character: '#'
#define  int ll
^
Main.java:23: error: class, interface, or enum expected
#define  int ll
         ^
Main.java:27: error: class, interface, or enum expected
main()
^
Main.java:30: error: class, interface, or enum expected
	forn(1, i, n)
	^
Main.java:33: error: class, interface, or enum expected
		int sum = 0;
		^
Main.java:34: error: class, interface, or enum expected
		forn(1, j, n)
		^
Main.java:37: error: class, interface, or enum expected
			dp[i + j][j] += sum;
			^
Main.java:38: error: class, interface, or enum expected
			dp[i + j][j] %= mod;
			^
Main.java:39: error: class, interface, or enum expected
			sum += dp[i][j];
			^
Main.java:40: error: class, interface, or enum expected
			sum %= mod;
			^
Main.java:41: error: class, interface, or enum expected
		}
		^
Main.java:44: error: class, interface, or enum expected
	forn(1, i, n)
	^
Main.java:47: error: class, interface, or enum expected
		sum %= mod;
		^
Main.java:48: error: class, interface, or enum expected
	}
	^
Main.java:50: error: class, interface, or enum expected
}
^
41 errors
stdout
Standard output is empty