Problem | potatosalad |
---|---|
User | jethrochai |
Submission Time | 2023-11-06 23:54:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:6:16: error: expected ‘;’ before ‘:’ token
6 | cout.tie(NULL):
| ^
| ;
potatosalad.cpp:8:13: error: ‘N’ was not declared in this scope
8 | int potato[N], sum = 0;
| ^
potatosalad.cpp:10:10: error: ‘potato’ was not declared in this scope
10 | cin >> potato[i];
| ^~~~~~
potatosalad.cpp:12:7: error: ‘potato’ was not declared in this scope
12 | sort(potato, potato + N);
| ^~~~~~
potatosalad.cpp:13:26: error: ‘D’ was not declared in this scope
13 | for (int i = N; i > N - D; i--){
| ^