Submission #1178632

#TimeUsernameProblemLanguageResultExecution timeMemory
1178632newbie__1코알라 (APIO17_koala)C++20
Compilation error
0 ms0 KiB
#define ll long long ll minValue(ll n,ll w){ vector<ll>c(n,0),r; c[0]=1; playRound(c,r); for(ll i=0;i<n;i++){ if(r[i]==0){ return i; } } return 0; } ll maxValue(ll n,ll w){ // ind mx val return n; } ll greaterValue(ll n,ll w){ // ind 0 || 1 return n; } void allValues(ll n,ll w,vector<ll>& p){ return; }

Compilation message (stderr)

koala.cpp: In function 'long long int minValue(long long int, long long int)':
koala.cpp:4:5: error: 'vector' was not declared in this scope
    4 |     vector<ll>c(n,0),r;
      |     ^~~~~~
koala.cpp:1:12: error: expected primary-expression before 'long'
    1 | #define ll long long
      |            ^~~~
koala.cpp:4:12: note: in expansion of macro 'll'
    4 |     vector<ll>c(n,0),r;
      |            ^~
koala.cpp:5:5: error: 'c' was not declared in this scope
    5 |     c[0]=1;
      |     ^
koala.cpp:6:17: error: 'r' was not declared in this scope
    6 |     playRound(c,r);
      |                 ^
koala.cpp:6:5: error: 'playRound' was not declared in this scope
    6 |     playRound(c,r);
      |     ^~~~~~~~~
koala.cpp: At global scope:
koala.cpp:26:26: error: 'vector' has not been declared
   26 | void allValues(ll n,ll w,vector<ll>& p){
      |                          ^~~~~~
koala.cpp:26:32: error: expected ',' or '...' before '<' token
   26 | void allValues(ll n,ll w,vector<ll>& p){
      |                                ^