제출 #894214

#제출 시각아이디문제언어결과실행 시간메모리
894214ozner77Arranging Shoes (IOI19_shoes)C++17
0 / 100
1 ms348 KiB
#include "shoes.h" #include "bits/stdc++.h" using namespace std; long long count_swaps(std::vector<int> s) { return 1; int a,b; vector<int> V; scanf("%d",&a); for(int i=0;i<a;i++){ scanf("%d",&b); V.push_back(b); } if(V[0]<0){ cout<<0; }else{ cout<<1; } }

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

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:8:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    8 |  scanf("%d",&a);
      |  ~~~~~^~~~~~~~~
shoes.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   10 |         scanf("%d",&b);
      |         ~~~~~^~~~~~~~~
#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...