제출 #1303725

#제출 시각아이디문제언어결과실행 시간메모리
1303725JahonaliXArranging Shoes (IOI19_shoes)C++20
컴파일 에러
0 ms0 KiB
#include "shoes.h" long long count_swaps(std::vector<int> s) { long long n = s.size() return n * n; }

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

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:5:9: error: expected ',' or ';' before 'return'
    5 |         return n * n;
      |         ^~~~~~
shoes.cpp:6:1: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | }
      | ^