제출 #420789

#제출 시각아이디문제언어결과실행 시간메모리
420789Nicholas_PatrickMalnaRISC (COI21_malnarisc)C++17
0 / 100
1 ms204 KiB
#include <cstdio> #include <queue> using namespace std; int main(){ int n; scanf("%d", &n); if(n==8){ printf( "6\n" "CMPSWP R1 R5 CMPSWP R2 R6 CMPSWP R3 R7 CMPSWP R4 R8\n" "CMPSWP R3 R5 CMPSWP R4 R6\n" "CMPSWP R4 R5\n" "CMPSWP R1 R2 CMPSWP R3 R4 CMPSWP R5 R6 CMPSWP R7 R8\n" "CMPSWP R1 R3 CMPSWP R2 R4 CMPSWP R5 R7 CMPSWP R6 R8\n" "CMPSWP R2 R3 CMPSWP R6 R7\n" ); } }

컴파일 시 표준 에러 (stderr) 메시지

malnarisc.cpp: In function 'int main()':
malnarisc.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    7 |  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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...