Siemka. Mam problem z programem. U mnie wszystko śmiga, wywołuje go w konsoli z odpowiednimi argumentami, lecz niestety sprawdzarka wykładowcy zwróciła błąd. Jestem w kropce, bo program śmiga, przetestowałem go na wszelkie możliwe sposoby i nic. Ma ktoś jakiś pomysł?

#include <iostream>
#include <fstream>
int main(int argc, char *argv[])
{
std::fstream input (argv[2]);
std::fstream output (argv[3]);
int key = atoi(argv[1]);
char c;
while(input.get(c)){
if(isalpha(c)){
int offset = 65;
if(islower(c)){
offset = 97;
}
int letter = (((int)c - offset + key)%26) + offset;
if(letter < offset){
letter+=26;
}
output << (char)letter;
} else {
output << c;
}
}
output.close();
input.close();
return 0;
}
EDIT2:
Prawidłowy kod błędu:
Execution arguments were:
['1', 'mgoqpx.txt', 'irivoq.txt']
Input file mgoqpx.txt was:
['']
Output file irivoq.txt not found
EXECUTION ERROR