Problem | exam |
---|---|
User | ToiletBrIcker |
Submission Time | 2024-06-18 10:11:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:3:7: error: ‘cin’ is not a member of ‘std’
3 | std::cin >> a
| ^~~
exam.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main(){
exam.cpp:7:2: error: ‘else’ without a previous ‘if’
7 | else{
| ^~~~
exam.cpp:9:3: error: expected initializer before ‘std’
9 | std::cin >> b >> c;
| ^~~
exam.cpp:10:8: error: ‘cout’ is not a member of ‘std’
10 | std::cout << (b*c)
| ^~~~
exam.cpp:10:8: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:10:19: error: ‘c’ was not declared in this scope
10 | std::cout << (b*c)
| ^