Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 4 years ago

Language

C++

Compiler

gcc 11.1.0

Options
Warnings
Don't Use Boost
C++11
-pedantic

Author

anonymous

almost 4 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
Exit Code:
1