Submission #16011

#TimeUsernameProblemLanguageResultExecution timeMemory
16011evenharder짝수 정렬 (tutorial3)C++98
Compilation error
0 ms0 KiB
#include "grader.h" #include<algorithm> void sort_even(int N, int[] A) { std::sort(A,A+N); for(int i=0;i<N;i++) { if(A[i]%2==0) { Report(A[i]); } } }

Compilation message (stderr)

tutorial3.cpp:3:29: error: expected ‘,’ or ‘...’ before ‘A’
 void sort_even(int N, int[] A)
                             ^
tutorial3.cpp: In function ‘void sort_even(int, int*)’:
tutorial3.cpp:5:13: error: ‘A’ was not declared in this scope
   std::sort(A,A+N);
             ^