fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4.  
  5. int main() {
  6. ll t;
  7. cin>>t;
  8. cout<<"1"<<endl;
  9. for(int i=0;i<n;i++){
  10. cout<<1<<" ";
  11. }
  12.  
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:16: error: ‘n’ was not declared in this scope
  for(int i=0;i<n;i++){
                ^
stdout
Standard output is empty