답안 #634410

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
634410 2022-08-24T11:06:24 Z ahmed_shafik 뒤집기 (IOI16_reverse) C++17
컴파일 오류
0 ms 0 KB
long long rev(long long a[],long long n)
{
    for(ll i=n-1; i>=0; i--)
    {
        cout<<arr[i]<<' ';
    }
    cout<<endl;
}

Compilation message

reverse.cpp: In function 'long long int rev(long long int*, long long int)':
reverse.cpp:3:9: error: 'll' was not declared in this scope
    3 |     for(ll i=n-1; i>=0; i--)
      |         ^~
reverse.cpp:3:19: error: 'i' was not declared in this scope
    3 |     for(ll i=n-1; i>=0; i--)
      |                   ^
reverse.cpp:5:9: error: 'cout' was not declared in this scope
    5 |         cout<<arr[i]<<' ';
      |         ^~~~
reverse.cpp:5:15: error: 'arr' was not declared in this scope
    5 |         cout<<arr[i]<<' ';
      |               ^~~
reverse.cpp:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<endl;
      |     ^~~~
reverse.cpp:7:11: error: 'endl' was not declared in this scope
    7 |     cout<<endl;
      |           ^~~~
reverse.cpp:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^