Submission #57430

#TimeUsernameProblemLanguageResultExecution timeMemory
57430duma3803줄서기 (KOI17_line)C++14
0 / 100
2 ms376 KiB
#include <bits/stdc++.h> using namespace std; int n; int arr[10]; int main() { int i; scanf("%d",&n); for (i=0;i<n;i++) arr[i] = i+1; // arr는 1, 2, 3, 4, ... , n do { for (i=0;i<n;i++) printf("%d ",arr[i]); printf("\n"); } while(next_permutation(arr,arr+n)); return 0; }

Compilation message (stderr)

line.cpp: In function 'int main()':
line.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...