Problem | lunchbox |
---|---|
User | Jesus77 |
Submission Time | 2025-01-22 17:06:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:46: error: ‘cin’ is not a member of ‘std’
7 | int main(){ unsigned int a, b, c; std::cin>>a;
| ^~~
lunchbox.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int lunchReceive(int m, int arr[], int k){ int sum=0, count=0;
lunchbox.cpp:9:33: error: ‘cin’ is not a member of ‘std’
9 | while(a--) { std::cin>>b; std::cin>>c;
| ^~~
lunchbox.cpp:9:33: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
lunchbox.cpp:9:53: error: ‘cin’ is not a member of ‘std’
9 | while(a--) { std::cin>>b; std::cin>>c;
| ^~~