Problem kfc
User asbx
Submission Time 2023-11-08 15:40:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

kfc.cpp:5:1: error: specializing member ‘std::basic_ios<char>::sync_with_stdio’ requires ‘template<>’ syntax
5 | ios::sync_with_stdio(0);
| ^~~
kfc.cpp:6:1: error: ‘cin’ does not name a type
6 | cin.tie(0);
| ^~~
kfc.cpp: In function ‘int main()’:
kfc.cpp:14:3: error: ‘sum’ was not declared in this scope
14 | sum=sum+W[i]+D[i]/S[i]
| ^~~
kfc.cpp:16:5: error: ‘sum’ was not declared in this scope
16 | if(sum>(X/K)){
| ^~~
kfc.cpp:16:10: error: ‘X’ was not declared in this scope
16 | if(sum>(X/K)){
| ^
kfc.cpp:16:12: error: ‘K’ was not declared in this scope
16 | if(sum>(X/K)){
| ^
kfc.cpp:17:9: error: ‘T’ was not declared in this scope
17 | cout<<T-(X/K);
| ^
kfc.cpp:20:9: error: ‘T’ was not declared in this scope
20 | cout<<T-sum
| ^