Author
anonymous
about 6 years ago
Language
C++
Compiler
gcc HEAD 10.0.0 20190428 (experimental)
Options
Warnings
Optimization
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-pedantic
-pthread
Author
anonymous
about 6 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic -pthread
prog.cc:7:2: error: 'string' does not name a type; did you mean 'stdin'?
7 | string name;
| ^~~~~~
| stdin
prog.cc:9:2: error: 'string' does not name a type; did you mean 'stdin'?
9 | string remarks;
| ^~~~~~
| stdin
prog.cc: In member function 'void Candidate::AssignRem()':
prog.cc:13:3: error: 'remarks' was not declared in this scope
13 | remarks="Selected";
| ^~~~~~~
prog.cc:15:3: error: 'remarks' was not declared in this scope
15 | remarks="Not selected";
| ^~~~~~~
prog.cc: In member function 'void Candidate::enter()':
prog.cc:20:3: error: 'cout' was not declared in this scope
20 | cout<<"Enter the registration number: ";
| ^~~~
prog.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include<stdio.h>
+++ |+#include <iostream>
3 | using namespace std;
prog.cc:21:3: error: 'cin' was not declared in this scope
21 | cin>>rno;
| ^~~
prog.cc:21:3: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
prog.cc:23:16: error: 'name' was not declared in this scope; did you mean 'rename'?
23 | getline (cin,name);
| ^~~~
| rename
prog.cc: In member function 'void Candidate::display()':
prog.cc:30:3: error: 'cout' was not declared in this scope
30 | cout<<"Registration number: "<<rno<<"\n";
| ^~~~
prog.cc:30:3: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
prog.cc:31:36: error: 'name' was not declared in this scope; did you mean 'rename'?
31 | cout<<"Name of the candidate: "<<name<<"\n";
| ^~~~
| rename
prog.cc:33:9: error: 'remarks' was not declared in this scope
33 | cout<<remarks;
| ^~~~~~~
Exit Code:
1