Problem combostacking
User anna15
Submission Time 2025-08-16 09:35:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

combostacking.cpp:1:2: error: invalid preprocessing directive #int
1 | #int <iostream>
| ^~~
combostacking.cpp: In function ‘int main()’:
combostacking.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> N >> K >> C;
| ^~~
combostacking.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #int <iostream>
combostacking.cpp:11:6: error: ‘c’ was not declared in this scope
11 | if (c == 1) {
| ^
combostacking.cpp:24:5: error: ‘cout’ was not declared in this scope
24 | cout << score << endl;
| ^~~~
combostacking.cpp:24:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
combostacking.cpp:24:22: error: ‘endl’ was not declared in this scope
24 | cout << score <