제출 #1035370

#제출 시각아이디문제언어결과실행 시간메모리
1035370MarwenElarbi친구 (IOI14_friend)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "friend.h" using namespace std; int findSample(int n,int confidence[],int host[],int protocol[]){ ll ans=0; for (int i = 0; i < n; ++i) { ans+=confidence[i]; } return ans; }

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

friend.cpp: In function 'int findSample(int, int*, int*, int*)':
friend.cpp:6:5: error: 'll' was not declared in this scope
    6 |     ll ans=0;
      |     ^~
friend.cpp:9:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |         ans+=confidence[i];
      |         ^~~
      |         abs
friend.cpp:11:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     return ans;
      |            ^~~
      |            abs