답안 #1087909

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1087909 2024-09-13T12:17:11 Z crafticat 말 (IOI15_horses) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>

#ifdef __SSE2__
#include <emmintrin.h>
#else
#warning SSE2 support is not available. Code will not compile
#endif

int main(int argc, char **argv)
{
    __m128 a = _mm_set_ps(4.0, 3.0, 2.0, 1.0);
    __m128 b = _mm_set_ps(8.0, 7.0, 6.0, 5.0);

    __m128 c = _mm_add_ps(a, b);

    float d[4];
    _mm_storeu_ps(d, c);

    std::cout << "result equals " << d[0] << "," << d[1]
              << "," << d[2] << "," << d[3] << std::endl;

    return 0;
}

Compilation message

horses.cpp: In function 'int main(int, char**)':
horses.cpp:9:14: warning: unused parameter 'argc' [-Wunused-parameter]
    9 | int main(int argc, char **argv)
      |          ~~~~^~~~
horses.cpp:9:27: warning: unused parameter 'argv' [-Wunused-parameter]
    9 | int main(int argc, char **argv)
      |                    ~~~~~~~^~~~
/usr/bin/ld: /tmp/cc7gWfxO.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccC5UEEN.o:horses.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc7gWfxO.o: in function `main':
grader.c:(.text.startup+0xaa): undefined reference to `init(int, int*, int*)'
/usr/bin/ld: grader.c:(.text.startup+0x113): undefined reference to `updateX(int, int)'
/usr/bin/ld: grader.c:(.text.startup+0x16d): undefined reference to `updateY(int, int)'
collect2: error: ld returned 1 exit status