Language
C++
Compiler
gcc 11.1.0
Options
Warnings
Don't Use Boost
C++11
-pedantic
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
Exit Code:
1
Author
anonymous
over 3 years ago
C++
gcc 11.1.0
Author
anonymous
over 3 years ago
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
prog.cc: In member function 'void Roster::addStudentDataToRoster(std::string*, int)':
prog.cc:22:9: warning: unused variable 'commaCount' [-Wunused-variable]
22 | int commaCount = 0;
| ^~~~~~~~~~
prog.cc:23:9: warning: unused variable 'entryLength' [-Wunused-variable]
23 | int entryLength = studentData[i].length();
| ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status